Skip to content

Commit

Permalink
misc_radius: fix compilation warning
Browse files Browse the repository at this point in the history
> functions.c:47:27: 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.
  • Loading branch information
linuxmaniac committed Jun 6, 2016
1 parent 1db19f1 commit 4e2f17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/misc_radius/functions.c
Expand Up @@ -44,7 +44,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 4e2f17d

Please sign in to comment.