Просмотр исходного кода

dpkg: Use braces on ‘if’ to avoid ambiguous ‘else’

Warning introduced in commit fc625d161382abc41b984ca9ee1e32ad4f295c67.
Guillem Jover лет назад: 15
Родитель
Сommit
6ab502b6a7
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/archives.c

+ 2 - 1
src/archives.c

@@ -619,11 +619,12 @@ tarobject(void *ctx, struct tar_entry *ti)
              conff = conff->next) {
           if (!conff->obsolete)
             continue;
-          if (stat(conff->name, &stabtmp))
+          if (stat(conff->name, &stabtmp)) {
             if (errno == ENOENT || errno == ENOTDIR || errno == ELOOP)
               continue;
             else
               ohshite(_("cannot stat file '%s'"), conff->name);
+          }
           if (stabtmp.st_dev == stab.st_dev &&
               stabtmp.st_ino == stab.st_ino)
             break;