tag: fix some warnings in mklicensestables
authorScott D Phillips <scott.d.phillips@intel.com>
Wed, 23 Nov 2016 05:12:23 +0000 (21:12 -0800)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 23 Nov 2016 08:20:04 +0000 (10:20 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=774878

gst-libs/gst/tag/mklicensestables.c

index 87d1205..6b73dfc 100644 (file)
@@ -137,6 +137,7 @@ ref_to_jurisdiction (const gchar * ref)
     bit <<= 1;
   }
   g_error ("Unknown jurisdiction '%s'\n", ref);
+  return JURISDICTION_GENERIC;
 }
 
 typedef enum
@@ -789,8 +790,8 @@ main (int argc, char **argv)
       /* no source license */
       if (license->titles == NULL)
         g_error ("License has no titles: %s\n", license->ref);
-      if (license->descriptions == NULL);
-      g_printerr ("License %s has no descriptions!\n", license->ref);
+      if (license->descriptions == NULL)
+        g_printerr ("License %s has no descriptions!\n", license->ref);
     }
   }