forked from github/server
type conversion binds stronger than trinary operator
This commit is contained in:
parent
0d0b827699
commit
99151e209b
|
@ -283,7 +283,7 @@ static const char *parse_string(opstack ** stack, const char *in,
|
||||||
if (ic == NULL)
|
if (ic == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
c = (char *)opop_v(stack);
|
c = (char *)opop_v(stack);
|
||||||
bytes = (int)c?strlcpy(oc, c, size):0;
|
bytes = (int)(c?strlcpy(oc, c, size):0);
|
||||||
if (bytes < (int)size)
|
if (bytes < (int)size)
|
||||||
oc += bytes;
|
oc += bytes;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue