summaryrefslogtreecommitdiff
path: root/networking/libiproute/rtm_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/rtm_map.c')
-rw-r--r--networking/libiproute/rtm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/rtm_map.c b/networking/libiproute/rtm_map.c
index ca2f443..6fe5c4b 100644
--- a/networking/libiproute/rtm_map.c
+++ b/networking/libiproute/rtm_map.c
@@ -88,7 +88,7 @@ int rtnl_rtntype_a2n(int *id, char *arg)
res = RTN_THROW;
else {
res = strtoul(arg, &end, 0);
- if (!end || end == arg || *end || res > 255)
+ if (end == arg || *end || res > 255)
return -1;
}
*id = res;