]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
silence picky compiler.
authorMichael Jerris <mike@jerris.com>
Wed, 29 Aug 2007 20:38:00 +0000 (20:38 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 29 Aug 2007 20:38:00 +0000 (20:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5678 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_console.c

index 3e655be1e8bd85869c00af294e05ff7cae48b229..57a567d938ff72dae79ab07b79de0655607b70f5 100644 (file)
@@ -183,7 +183,7 @@ static int32_t running = 1;
 static char prompt_str[512] = "";
 
 char * prompt(EditLine *e) {
-       if (switch_strlen_zero(prompt_str)) {
+       if (*prompt_str == '\0') {
                gethostname(hostname, sizeof(hostname));
                snprintf(prompt_str, sizeof(prompt_str), "freeswitch@%s> ", hostname);
        }