]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update options.c 239/head
authorliuli <liuli@uniontech.com>
Sat, 18 Sep 2021 00:19:40 +0000 (08:19 +0800)
committerGitHub <noreply@github.com>
Sat, 18 Sep 2021 00:19:40 +0000 (08:19 +0800)
cups/options.c

index 587bca8cceff7a188ad6fccb757e1074c61b5230..e45858c2c9e9c7f879d432c9d872c490e052c730 100644 (file)
@@ -607,8 +607,7 @@ _cupsGet1284Values(
       ptr --;
 
     *ptr = '\0';
-    if (ptr > value)
-       num_values = cupsAddOption(key, value, num_values, values);
+    num_values = cupsAddOption(key, value, num_values, values);
          
     if (!*device_id)
       break;