File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -432,23 +432,23 @@ static char* get_env_location(const char *envname)
432
432
size = GetEnvironmentVariableA (envname , & dummybuf , 0 );
433
433
if (GetLastError () == ERROR_ENVVAR_NOT_FOUND ) {
434
434
/* The environment variable doesn't exist. */
435
- env_location = "" ;
436
- } else {
437
- if (size == 0 ) {
438
- env_location = "" ;
439
- } else {
440
- size = GetEnvironmentVariableA (envname , phprc_path , size );
441
- if (size == 0 ) {
442
- env_location = "" ;
443
- } else {
444
- env_location = phprc_path ;
445
- }
446
- }
435
+ return "" ;
447
436
}
437
+
438
+ if (size == 0 ) {
439
+ return "" ;
440
+ }
441
+
442
+ size = GetEnvironmentVariableA (envname , phprc_path , size );
443
+ if (size == 0 ) {
444
+ return "" ;
445
+ }
446
+
447
+ env_location = phprc_path ;
448
448
}
449
449
#else
450
450
if (!env_location ) {
451
- env_location = "" ;
451
+ return "" ;
452
452
}
453
453
#endif
454
454
You can’t perform that action at this time.
0 commit comments