diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-04-22 07:48:35 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-04-22 07:48:35 -0400 |
commit | d86153a94f0b5b4bcb7d3358f939ff5a5c0537e9 (patch) | |
tree | a551eba8a74ab35b8b8bc0029f665c0a3393c834 /scheduler | |
parent | 400e67c15f228f28adbc7eb801ed4e9675c740db (diff) | |
download | cups-d86153a94f0b5b4bcb7d3358f939ff5a5c0537e9.tar.gz |
Make sure "num_values" is always initialized since newer versions of GCC will
(incorrectly) error out on this...
Diffstat (limited to 'scheduler')
-rw-r--r-- | scheduler/type.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scheduler/type.c b/scheduler/type.c index 5df77e9bf..f547b8358 100644 --- a/scheduler/type.c +++ b/scheduler/type.c @@ -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; } /* |