]> git.saurik.com Git - apt.git/commitdiff
[apt-pkg/contrib/fileutl.cc] In function ExecWait(): fix compile warning:
authorDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 3 Aug 2009 12:31:40 +0000 (14:31 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Mon, 3 Aug 2009 12:31:40 +0000 (14:31 +0200)
warning: suggest explicit braces to avoid ambiguous ‘else’

apt-pkg/contrib/fileutl.cc

index a7de09c44d6d99f1d779053fc5fef341a63cbb55..4240d9f4930b004828b201d72dd7395161060a8d 100644 (file)
@@ -451,10 +451,12 @@ bool ExecWait(pid_t Pid,const char *Name,bool Reap)
       if (Reap == true)
         return false;
       if (WIFSIGNALED(Status) != 0)
+      {
         if( WTERMSIG(Status) == SIGSEGV)
            return _error->Error(_("Sub-process %s received a segmentation fault."),Name);
         else 
            return _error->Error(_("Sub-process %s received signal %u."),Name, WTERMSIG(Status));
+      }
 
       if (WIFEXITED(Status) != 0)
         return _error->Error(_("Sub-process %s returned an error code (%u)"),Name,WEXITSTATUS(Status));