aboutsummaryrefslogtreecommitdiffstats
path: root/src/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.c')
-rw-r--r--src/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.c b/src/init.c
index 4e106ca..60c60b7 100644
--- a/src/init.c
+++ b/src/init.c
@@ -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);