]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
msgfmt: Fix potential access to uninitialized value
authorDaiki Ueno <ueno@gnu.org>
Tue, 9 Dec 2014 06:53:57 +0000 (15:53 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 9 Dec 2014 06:59:54 +0000 (15:59 +0900)
* msgfmt.c (msgfmt_desktop_bulk): Don't dereference potentially
uninitialized value.  Spotted by clang-analyzer.

gettext-tools/src/ChangeLog
gettext-tools/src/msgfmt.c

index 55b4ce81b67d1d239c5470eea11457e6c6c7f8be..926e5abc38cdb68b64558ef519f6969f737edffe 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-09  Daiki Ueno  <ueno@gnu.org>
+
+       * msgfmt.c (msgfmt_desktop_bulk): Don't dereference potentially
+       uninitialized value.  Spotted by clang-analyzer.
+
 2014-12-09  Daiki Ueno  <ueno@gnu.org>
 
        * x-vala.c (phase3_get): Factor out the buffer allocation as a
index 99026bfbd2bb7d277a0b7a43546d6cdc87611e36..3fabd8773e6000135132a97ef4bb65f3f7221de1 100644 (file)
@@ -1392,10 +1392,7 @@ msgfmt_desktop_bulk (const char *directory,
 
   languages = get_languages (directory);
   if (!languages)
-    {
-      retval = EXIT_FAILURE;
-      goto out;
-    }
+    return EXIT_FAILURE;
 
   /* Reset the directory search list so only .po files under DIRECTORY
      will be read.  */