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 @@ -433,23 +433,23 @@ static char* get_env_location(const char *envname)
433
433
size = GetEnvironmentVariableA (envname , & dummybuf , 0 );
434
434
if (GetLastError () == ERROR_ENVVAR_NOT_FOUND ) {
435
435
/* The environment variable doesn't exist. */
436
- env_location = "" ;
437
- } else {
438
- if (size == 0 ) {
439
- env_location = "" ;
440
- } else {
441
- size = GetEnvironmentVariableA (envname , phprc_path , size );
442
- if (size == 0 ) {
443
- env_location = "" ;
444
- } else {
445
- env_location = phprc_path ;
446
- }
447
- }
436
+ return "" ;
448
437
}
438
+
439
+ if (size == 0 ) {
440
+ return "" ;
441
+ }
442
+
443
+ size = GetEnvironmentVariableA (envname , phprc_path , size );
444
+ if (size == 0 ) {
445
+ return "" ;
446
+ }
447
+
448
+ env_location = phprc_path ;
449
449
}
450
450
#else
451
451
if (!env_location ) {
452
- env_location = "" ;
452
+ return "" ;
453
453
}
454
454
#endif
455
455
You can’t perform that action at this time.
0 commit comments