gui: Prefer NULL to 0 for initializing pointers.
[pspp-builds.git] / src / ui / gui / variable-info-dialog.c
index 088083f56b03ab99738a104ec61f08d6b8173568..3692a0d24834b5bdb94bb0d8311d9e093fd38130 100644 (file)
@@ -55,7 +55,7 @@ label_to_string (const struct variable *var)
 static void
 populate_text (PsppireDictView *treeview, gpointer data)
 {
-  gchar *text = 0;
+  gchar *text = NULL;
   GString *gstring;
   PsppireDict *dict;
 
@@ -89,9 +89,8 @@ populate_text (PsppireDictView *treeview, gpointer data)
                          text);
   g_free (text);
 
-  text = measure_to_string (var, NULL);
   g_string_append_printf (gstring, _("Measurement Level: %s\n"),
-                         text);
+                         measure_to_string (var, NULL));
 
 
   /* Value Labels */