]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update options.c
authorliuli <liuli@uniontech.com>
Mon, 6 Sep 2021 00:39:43 +0000 (08:39 +0800)
committerGitHub <noreply@github.com>
Mon, 6 Sep 2021 00:39:43 +0000 (08:39 +0800)
cups/options.c

index d4ca1fee8f37bf5cea9c3fef26b474a0292136fe..587bca8cceff7a188ad6fccb757e1074c61b5230 100644 (file)
@@ -598,8 +598,7 @@ _cupsGet1284Values(
 
     if (!*device_id)
       break;
-    
-    memset(value, 0, sizeof(value));
+
     for (ptr = value; *device_id && *device_id != ';'; device_id ++)
       if (ptr < (value + sizeof(value) - 1))
         *ptr++ = *device_id;