mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 12:37:05 +00:00
don't check array's for null with switch_str_nil macro (MODAPP-44)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6127 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
6ae43f954e
commit
1ada0efb54
2 files changed
+8
-7
No files matched your search
@@ -24,6 +24,7 @@
|
||||
* Contributor(s):
|
||||
*
|
||||
* Anthony Minessale II <anthmct@yahoo.com>
|
||||
* Bret McDanel <trixter AT 0xdecafbad.com>
|
||||
*
|
||||
*
|
||||
* mod_rss.c -- RSS Browser
|
||||
@@ -323,7 +324,7 @@ SWITCH_STANDARD_APP(rss_function)
|
||||
goto finished;
|
||||
}
|
||||
}
|
||||
if (!switch_strlen_zero(cmd)) {
|
||||
if (*cmd != '\0') {
|
||||
int32_t i;
|
||||
char *p;
|
||||
|
||||
@@ -482,7 +483,7 @@ SWITCH_STANDARD_APP(rss_function)
|
||||
if (status != SWITCH_STATUS_SUCCESS && status != SWITCH_STATUS_BREAK) {
|
||||
goto finished;
|
||||
}
|
||||
if (!switch_strlen_zero(cmd)) {
|
||||
if (*cmd != '\0') {
|
||||
switch (*cmd) {
|
||||
case '0':
|
||||
switch_set_flag(&dtb, SFLAG_INSTRUCT);
|
||||
|
||||
Reference in new issue
Block a user