From: Michael R Sweet Date: Wed, 1 Nov 2017 18:41:39 +0000 (-0400) Subject: Silence Clang static analyzer warning. X-Git-Tag: v2.3b1~80 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25140c63ec22f577a3db4b563e3812a28f324756;p=thirdparty%2Fcups.git Silence Clang static analyzer warning. --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 925ab80557..f1082c6701 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -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 ++)