]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure "num_values" is always initialized since newer versions of GCC will
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 22 Apr 2019 11:48:35 +0000 (07:48 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 22 Apr 2019 11:48:35 +0000 (07:48 -0400)
(incorrectly) error out on this...

scheduler/type.c

index 5df77e9bf0a50695b76d5fe405d490fa1cc9d9f1..f547b835836b6a49f5a5a1f4344c29ba8b98085f 100644 (file)
@@ -451,6 +451,7 @@ mimeAddTypeRule(mime_type_t *mt,    /* I - Type to add to */
        snprintf(value[0], sizeof(value[0]), "*.%s", name);
        length[0]  = (int)strlen(value[0]);
        op         = MIME_MAGIC_MATCH;
+       num_values = 1;
       }
 
      /*