mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Fix typo in gb_get_env
This commit is contained in:
+2
-2
@@ -9177,7 +9177,7 @@ gb_inline void gb_yield(void) {
|
|||||||
|
|
||||||
char const *gb_get_env(char const *name, gbAllocator allocator) {
|
char const *gb_get_env(char const *name, gbAllocator allocator) {
|
||||||
#if defined(GB_SYSTEM_WINDOWS)
|
#if defined(GB_SYSTEM_WINDOWS)
|
||||||
if (!name || *name) {
|
if (!name || !*name) {
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
// TODO(bill): Should this be a Wide version?
|
// TODO(bill): Should this be a Wide version?
|
||||||
@@ -9203,7 +9203,7 @@ char const *gb_get_env(char const *name, gbAllocator allocator) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (!name || *name) {
|
if (!name || !*name) {
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
char const *res = getenv(name);
|
char const *res = getenv(name);
|
||||||
|
|||||||
Reference in New Issue
Block a user