mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
(closes issue #10734)
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
This commit is contained in:
@@ -3480,7 +3480,7 @@ static void print_ext(struct ast_exten *e, char * buf, int buflen)
|
|||||||
} else {
|
} else {
|
||||||
snprintf(buf, buflen, "%d. %s(%s)",
|
snprintf(buf, buflen, "%d. %s(%s)",
|
||||||
prio, ast_get_extension_app(e),
|
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) : ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user