Do not assign the return of setlocale(LC_ALL,"C") to locale var
authorNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 16 Sep 2011 07:12:13 +0000 (03:12 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Fri, 16 Sep 2011 07:12:13 +0000 (03:12 -0400)
since it will be no longer used afterwards.
CID:432
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/mule/input-method-xlib.c

index cf20e90..eb083af 100644 (file)
@@ -158,7 +158,7 @@ Initialize_Locale (void)
                           "Using C Locale instead\n", locale);
                putenv ("LANG=C");
                putenv ("LC_ALL=C");
-               if ((locale = setlocale (LC_ALL, "C")) == NULL) {
+               if (setlocale (LC_ALL, "C") == NULL) {
                        xim_warn ("Can't set locale to `C'!\n");
                        return;
                }