I found this sillyness when I did my ast_module_user conversion. Return immediately if no data was passed to the Verbose application.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Joshua Colp 18 years ago
parent b8cd949cce
commit 0dc98ebdf2

@ -54,11 +54,12 @@ static char *log_descrip =
static int verbose_exec(struct ast_channel *chan, void *data)
{
char *vtext;
char *vtext, *tmp;
int vsize;
if (data) {
char *tmp;
if (ast_strlen_zero(data))
return 0;
vtext = ast_strdupa(data);
tmp = strsep(&vtext, "|");
if (vtext) {
@ -88,7 +89,6 @@ static int verbose_exec(struct ast_channel *chan, void *data)
ast_verbose(VERBOSE_PREFIX_4 "%s\n", vtext);
}
}
}
return 0;
}

Loading…
Cancel
Save