From 844d93a67cb6d8cb92afe17885df3ade9c6f89be Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Mon, 26 Dec 2011 12:39:53 -0500 Subject: [PATCH] Remove compiler warning --- src/lib/dict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/dict.c b/src/lib/dict.c index bbd94d8..9c166b1 100644 --- a/src/lib/dict.c +++ b/src/lib/dict.c @@ -1413,7 +1413,7 @@ static int process_attribute(const char* fn, const int line, /* * TLV's can be only one octet. */ - if ((value <= 0) || ((value & ~fr_attr_mask[tlv_depth]) != 0)) { + if ((value == 0) || ((value & ~fr_attr_mask[tlv_depth]) != 0)) { fr_strerror_printf( "dict_init: %s[%d]: sub-tlv has invalid attribute number", fn, line); return -1; -- 2.1.4