src/http/cervlet.c:253: bad compare ?

Issue #717 resolved
David Binderman created an issue

src/http/cervlet.c:253:63: warning: ordered comparison of pointer with integer zero [-Wextra]

Source code is

 int multiline = strrchr(_value, '\n') > 0;

maybe better code

 int multiline = strrchr(_value, '\n') != 0;

Comments (1)

  1. Log in to comment