[network-manager-vpnc] helper: drop an unneeded check
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-vpnc] helper: drop an unneeded check
- Date: Tue, 8 Mar 2016 13:41:52 +0000 (UTC)
commit 9d851379d9cc93615a8a57697ff4fc337bda2f74
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Tue Mar 8 14:36:33 2016 +0100
helper: drop an unneeded check
CID 59903 (#1 of 1): Unsigned compared against 0 (NO_EFFECT)
unsigned_compare: This greater-than-or-equal-to-zero comparison of an
unsigned value is always true. pfx >= 0UL.
src/nm-vpnc-service-vpnc-helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-vpnc-service-vpnc-helper.c b/src/nm-vpnc-service-vpnc-helper.c
index 0f9a901..7f43dc7 100644
--- a/src/nm-vpnc-service-vpnc-helper.c
+++ b/src/nm-vpnc-service-vpnc-helper.c
@@ -315,7 +315,7 @@ main (int argc, char *argv[])
errno = 0;
pfx = strtoul (tmp, NULL, 10);
- if (pfx >= 0 && pfx <= 32 && errno == 0)
+ if (pfx <= 32 && errno == 0)
prefix = (guint32) pfx;
netmask_found = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]