Skip to content

Commit

Permalink
peering: fix compilation warning
Browse files Browse the repository at this point in the history
> verify.c:58:30: warning: comparison of array 'vp->strvalue' equal to a null pointer is always false [-Wtautological-pointer-compare]
>     if (vp->lvalue==0 || vp->strvalue==0)
>                          ~~~~^~~~~~~~  ~
> 1 warning generated.

(cherry picked from commit bb545d0)
  • Loading branch information
linuxmaniac authored and miconda committed Jun 27, 2016
1 parent 3bc6b91 commit 7d8e4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/peering/verify.c
Expand Up @@ -55,7 +55,7 @@ static inline int extract_avp(VALUE_PAIR* vp, unsigned short *flags,
char *end;

/* empty? */
if (vp->lvalue==0 || vp->strvalue==0)
if (vp->lvalue==0)
goto error;

p = vp->strvalue;
Expand Down

0 comments on commit 7d8e4e6

Please sign in to comment.