]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.270 v7.4.270
authorBram Moolenaar <Bram@vim.org>
Tue, 29 Apr 2014 13:11:43 +0000 (15:11 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 29 Apr 2014 13:11:43 +0000 (15:11 +0200)
Problem:    Comparing pointers instead of the string they point to.
Solution:   Use strcmp(). (Ken Takata)

src/gui_gtk_x11.c
src/version.c

index 1cb47b44b0cf60339de690973719b8bfb9268189..3e1616c853b9437e287f042247c362a79bb72f13 100644 (file)
@@ -3142,10 +3142,14 @@ gui_mch_init(void)
        gnome_program_init(VIMPACKAGE, VIM_VERSION_SHORT,
                           LIBGNOMEUI_MODULE, gui_argc, gui_argv, NULL);
 # if defined(FEAT_FLOAT) && defined(LC_NUMERIC)
-       /* Make sure strtod() uses a decimal point, not a comma. Gnome init
-        * may change it. */
-       if (setlocale(LC_NUMERIC, NULL) != (char *) "C")
-          setlocale(LC_NUMERIC, "C");
+       {
+           char *p = setlocale(LC_NUMERIC, NULL);
+
+           /* Make sure strtod() uses a decimal point, not a comma. Gnome
+            * init may change it. */
+           if (p == NULL || strcmp(p, "C") != 0)
+              setlocale(LC_NUMERIC, "C");
+       }
 # endif
     }
 #endif
index f13edda8310fccd85a6fa50cd5702f7452ce1f05..b41ffc2973a22707810dcbc72004a3bed3af46b7 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    270,
 /**/
     269,
 /**/