From d8ab156cbac8f3e2da7cc769984a17fbf4b68ac3 Mon Sep 17 00:00:00 2001 From: file Date: Wed, 18 Jul 2007 13:59:01 +0000 Subject: Minor code tweaks. Variables were being checked wrong in some situations and didn't need to be checked in others. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75566 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_realtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pbx/pbx_realtime.c') diff --git a/pbx/pbx_realtime.c b/pbx/pbx_realtime.c index 9ee770c99..d1011fe8e 100644 --- a/pbx/pbx_realtime.c +++ b/pbx/pbx_realtime.c @@ -211,7 +211,7 @@ static int realtime_exec(struct ast_channel *chan, const char *context, const ch "Application: %s\r\n" "AppData: %s\r\n" "Uniqueid: %s\r\n", - chan->name, chan->context, chan->exten, chan->priority, app, appdata ? appdata : "(NULL)", chan->uniqueid); + chan->name, chan->context, chan->exten, chan->priority, app, !ast_strlen_zero(appdata) ? appdata : "(NULL)", chan->uniqueid); res = pbx_exec(chan, a, appdata); } else -- cgit v1.2.3