Don't use strlen to check for empty string

SVN revision: 23042
This commit is contained in:
sebastid 2006-06-01 05:15:05 +00:00 committed by sebastid
parent 59a12c9d5d
commit 6d775e62d2
1 changed files with 1 additions and 1 deletions

View File

@ -747,7 +747,7 @@ _e_exebuf_matches_update(void)
int i, max;
_e_exebuf_matches_clear();
if (strlen(cmd_buf) == 0) return;
if (!cmd_buf[0]) return;
snprintf(buf, sizeof(buf), "*%s*", cmd_buf);
list = e_app_name_glob_list(buf);