Преглед изворни кода

dpkg-query: Do not use C99 style for-loop variable declarations

Guillem Jover пре 17 година
родитељ
комит
848980ebb1
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/query.c

+ 3 - 1
src/query.c

@@ -534,7 +534,9 @@ control_path(const char *const *argv)
 
   /* Validate control file name for sanity. */
   if (control_file) {
-    for (const char *c = "/."; *c; c++)
+    const char *c;
+
+    for (c = "/."; *c; c++)
       if (strchr(control_file, *c))
         badusage(_("control file contains %c"), *c);
   }