summaryrefslogtreecommitdiff
path: root/scheduler/type.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-07-15 01:21:40 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2008-07-15 01:21:40 +0000
commit1f0275e3cc0bc5fbe11e3bffd54581aa05c9c764 (patch)
treefac6166e65e5ecf207f69d77e00529a7337d91ac /scheduler/type.c
parent4509bb49335b3edfdb1b03d83d6cd05890968b59 (diff)
downloadcups-1f0275e3cc0bc5fbe11e3bffd54581aa05c9c764.tar.gz
Merge changes from CUPS 1.4svn-r7715.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@859 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/type.c')
-rw-r--r--scheduler/type.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/scheduler/type.c b/scheduler/type.c
index 6532b9c08..e93720d07 100644
--- a/scheduler/type.c
+++ b/scheduler/type.c
@@ -284,8 +284,7 @@ mimeAddTypeRule(mime_type_t *mt, /* I - Type to add to */
while (isalnum(*rule & 255) && (ptr - name) < (sizeof(name) - 1))
*ptr++ = *rule++;
- *ptr = '\0';
- num_values = 0;
+ *ptr = '\0';
if (*rule == '(')
{
@@ -415,7 +414,6 @@ mimeAddTypeRule(mime_type_t *mt, /* I - Type to add to */
snprintf(value[0], sizeof(value[0]), "*.%s", name);
length[0] = strlen(value[0]);
- num_values = 1;
op = MIME_MAGIC_MATCH;
}