Testing the first character for NULL is more efficient than checking a strlen of 0.

This commit is contained in:
Roy Marples 2008-01-21 15:20:05 +00:00
parent 28618c8174
commit 847ccac13c

View File

@ -816,7 +816,7 @@ static int _do_eend (const char *cmd, int retval, const char *__EINFO_RESTRICT f
FILE *fp = stdout;
va_list apc;
if (fmt && strlen (fmt) > 0 && retval != 0) {
if (fmt && *fmt != '\0' && retval != 0) {
va_copy (apc, ap);
if (strcmp (cmd, "ewend") == 0) {
col = _ewarnvn (fmt, apc);