]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10734)
authorJoshua Colp <jcolp@digium.com>
Mon, 17 Sep 2007 02:00:59 +0000 (02:00 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 17 Sep 2007 02:00:59 +0000 (02:00 +0000)
Reported by: asgaroth
Instead of passing a NULL pointer into snprintf pass "". It makes Solaris much happier.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@82514 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index 1adb4da8e749669d3e39fb6a7eee447881226d2f..76af9567d729d1b1d124d9f0de01ed05da2128b0 100644 (file)
@@ -3480,7 +3480,7 @@ static void print_ext(struct ast_exten *e, char * buf, int buflen)
        } else {
                snprintf(buf, buflen, "%d. %s(%s)",
                        prio, ast_get_extension_app(e),
-                       (char *)ast_get_extension_app_data(e));
+                       (!ast_strlen_zero(ast_get_extension_app_data(e)) ? (char *)ast_get_extension_app_data(e) : ""));
        }
 }