Ticket #12894: 0025-HaikuDepot-Fix-Wlogical-not-parentheses.patch

File 0025-HaikuDepot-Fix-Wlogical-not-parentheses.patch, 769 bytes (added by mt, 8 years ago)
  • src/apps/haikudepot/ui/App.cpp

    From 887af1075b27910a4fe1ed2c403160e6e3fa16a5 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 28 Jul 2016 05:17:35 +0900
    Subject: [PATCH 25/27] HaikuDepot: Fix -Wlogical-not-parentheses
    
    ---
     src/apps/haikudepot/ui/App.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/apps/haikudepot/ui/App.cpp b/src/apps/haikudepot/ui/App.cpp
    index 6e22734..93758ca 100644
    a b void  
    151151App::_Open(const BEntry& entry)
    152152{
    153153    BPath path;
    154     if (!entry.Exists() || !entry.GetPath(&path) == B_OK) {
     154    if (!entry.Exists() || entry.GetPath(&path) != B_OK) {
    155155        fprintf(stderr, "Package file not found: %s\n", path.Path());
    156156        return;
    157157    }