aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc-misc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-21 15:30:40 +0000
committerRoy Marples <roy@marples.name>2008-01-21 15:30:40 +0000
commit07728abbc1eb1aa91d21318f3a3d64b15c2800fe (patch)
tree350dfce5968e05b1db4a1b7d94cb72dfdf830df4 /src/librc/librc-misc.c
parent847ccac13c8afc04d1105cc483c8ec7e9baa53a6 (diff)
Checking first char for null is more efficient than strlen.
Diffstat (limited to 'src/librc/librc-misc.c')
-rw-r--r--src/librc/librc-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c
index be911e9f..db6209fd 100644
--- a/src/librc/librc-misc.c
+++ b/src/librc/librc-misc.c
@@ -196,7 +196,7 @@ char **rc_config_load (const char *file)
do {
/* Bash variables are usually quoted */
token = strsep (&line, "\"\'");
- } while ((token) && (strlen (token) == 0));
+ } while (token && *token == '\0');
/* Drop a newline if that's all we have */
if (token) {