diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-25 21:24:33 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-25 21:24:33 +0100 |
| commit | df4404e0933e6296b6d20aff4b01c854a9b73a98 (patch) | |
| tree | 2308a6da97cb6757a4f0e4ac28c62d58c0ae2ad0 /src | |
| parent | 583fd89fcf20e4efb0f15f65d29445b874ce980b (diff) | |
Fix typo in gb_get_env
Diffstat (limited to 'src')
| -rw-r--r-- | src/gb/gb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gb/gb.h b/src/gb/gb.h index 876078cc8..e5688aca6 100644 --- a/src/gb/gb.h +++ b/src/gb/gb.h @@ -9177,7 +9177,7 @@ gb_inline void gb_yield(void) { char const *gb_get_env(char const *name, gbAllocator allocator) { #if defined(GB_SYSTEM_WINDOWS) - if (!name || *name) { + if (!name || !*name) { return NULL; } else { // TODO(bill): Should this be a Wide version? @@ -9203,7 +9203,7 @@ char const *gb_get_env(char const *name, gbAllocator allocator) { } } #else - if (!name || *name) { + if (!name || !*name) { return NULL; } else { char const *res = getenv(name); |