src/ui/gui/var-display.c (missing_values_to_string): Reduce scope of local variable.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 10 Apr 2021 06:10:08 +0000 (08:10 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 10 Apr 2021 06:28:41 +0000 (08:28 +0200)
src/ui/gui/var-display.c

index 8f084e7f1d7e15e0e23e119284fd566019b35b8e..951d62c0a8785e745d1cd96c8c45e1282152d5b0 100644 (file)
@@ -37,12 +37,12 @@ static const gchar none[] = N_("None");
 gchar *
 missing_values_to_string (const struct variable *pv, GError **err)
 {
-  gchar *s;
   const struct missing_values *miss = var_get_missing_values (pv);
   if (mv_is_empty (miss))
     return xstrdup (gettext (none));
   else
     {
+      gchar *s = NULL;
       if (! mv_has_range (miss))
        {
          GString *gstr = g_string_sized_new (10);