Remove pointless NULL test in translat.c

'args' is always non-NULL when this function is called (and has already been dereferenced before the point
where it was tested, anyway).
This commit is contained in:
Kevin Easton
2017-10-14 23:18:26 +11:00
parent 5839f2b393
commit b102b9d5c9

View File

@@ -388,7 +388,7 @@ static unsigned char my_getarg(char **args)
unsigned char *arg;
arg = (unsigned char *)next_arg(*args, args);
if (!args || !*args || !arg)
if (!*args || !arg)
return '\0';
/* Don't trust isdigit() with 8 bits. */
if ((*arg <= '9') && (*arg >= '0'))