VirtualBox

Changeset 63541 in vbox for trunk/src/libs


Ignore:
Timestamp:
Aug 16, 2016 11:23:41 AM (8 years ago)
Author:
vboxsync
Message:

xpcom/nsDirectoryService.cpp: use PR_SetEnv instead of putenv to avoid warning about 'char *' string constant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/io/nsDirectoryService.cpp

    r62376 r63541  
    332332#ifdef MOZ_DEFAULT_VBOX_XPCOM_HOME
    333333    if (PR_GetEnv("VBOX_XPCOM_HOME") == nsnull)
    334     {
    335         putenv("VBOX_XPCOM_HOME=" MOZ_DEFAULT_VBOX_XPCOM_HOME);
    336     }
     334        PR_SetEnv("VBOX_XPCOM_HOME=" MOZ_DEFAULT_VBOX_XPCOM_HOME);
    337335#endif
    338336
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette