]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Silence Clang static analyzer warning.
authorMichael R Sweet <michaelrsweet@gmail.com>
Wed, 1 Nov 2017 18:41:39 +0000 (14:41 -0400)
committerMichael R Sweet <michaelrsweet@gmail.com>
Wed, 1 Nov 2017 18:41:39 +0000 (14:41 -0400)
cups/ppd-cache.c

index 925ab80557e3e1c8a434bdfed1729106e53c17a4..f1082c67015a5846d6eb3b39228a596ab39378cb 100644 (file)
@@ -4041,7 +4041,8 @@ _ppdCreateFromIPP(char   *buffer, /* I - Filename buffer */
     if (count > (int)(sizeof(resolutions) / sizeof(resolutions[0])))
       count = (int)(sizeof(resolutions) / sizeof(resolutions[0]));
 
-    for (i = 0; i < count; i ++)
+    resolutions[0] = 0; /* Not in loop to silence Clang static analyzer... */
+    for (i = 1; i < count; i ++)
       resolutions[i] = i;
 
     for (i = 0; i < (count - 1); i ++)