diff options
author | Marcus Brinkmann <[email protected]> | 2006-07-04 11:55:00 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2006-07-04 11:55:00 +0000 |
commit | 77d8d4e52f3881031971fd51ea62f9017dbd5a38 (patch) | |
tree | ad2844bd8b22533c1c91041aa29597e2a2903216 /src/init.c | |
parent | 2006-05-30 Marcus Brinkmann <[email protected]> (diff) | |
download | libgpg-error-77d8d4e52f3881031971fd51ea62f9017dbd5a38.tar.gz libgpg-error-77d8d4e52f3881031971fd51ea62f9017dbd5a38.zip |
2006-07-04 Marcus Brinkmann <[email protected]>
* src/init.c (get_locale_dir): Return NULL instead of garbage.
* src/gpg-error.c (get_locale_dir): Likewise.
Submitted by Simon Josefsson <[email protected]>.
Diffstat (limited to 'src/init.c')
-rw-r--r-- | src/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -196,7 +196,7 @@ get_locale_dir (void) instdir = read_w32_registry_string ("HKEY_LOCAL_MACHINE", REGKEY, "Install Directory"); if (!instdir) - return; + return NULL; /* Build the key: "<instdir>/share/locale". */ #define SLDIR "\\share\\locale" @@ -204,7 +204,7 @@ get_locale_dir (void) if (!dname) { free (instdir); - return; + return NULL; } p = dname; strcpy (p, instdir); |