]> git.saurik.com Git - apt.git/commitdiff
fix "(style) Checking if unsigned variable 'Minor' is less than zero."
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 4 Mar 2012 23:20:28 +0000 (00:20 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 4 Mar 2012 23:20:28 +0000 (00:20 +0100)
methods/http.cc

index 7979af2995cd761595630462c98275024656d4ea..13577164303c5d1405cb2803450199e2eb90a94b 100644 (file)
@@ -582,7 +582,7 @@ bool ServerState::HeaderLine(string Line)
         Persistent = false;
       else
       {
         Persistent = false;
       else
       {
-        if (Major == 1 && Minor <= 0)
+        if (Major == 1 && Minor == 0)
            Persistent = false;
         else
            Persistent = true;
            Persistent = false;
         else
            Persistent = true;