diff options
author | Roy Marples <roy@marples.name> | 2008-01-21 15:20:05 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-01-21 15:20:05 +0000 |
commit | 847ccac13c8afc04d1105cc483c8ec7e9baa53a6 (patch) | |
tree | e8c2b189a46be7aa81e167f09669a847829ac349 | |
parent | 28618c81743d9a55fcde2dc19cdcaec8b16fdd45 (diff) |
Testing the first character for NULL is more efficient than checking a strlen of 0.
-rw-r--r-- | src/libeinfo/libeinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c index 6ee0a0a6..82805f85 100644 --- a/src/libeinfo/libeinfo.c +++ b/src/libeinfo/libeinfo.c @@ -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); |