Revision
15245
Author
ledr
Date
2009-10-27 04:55:49 -0500 (Tue, 27 Oct 2009)

Log Message

Replaced switch_strlen_zero with zstr

Modified Paths

Diff

Modified: freeswitch/trunk/contrib/ledr/c/mod_odbc_query/mod_odbc_query.c (15244 => 15245)


--- freeswitch/trunk/contrib/ledr/c/mod_odbc_query/mod_odbc_query.c	2009-10-27 09:53:22 UTC (rev 15244)
+++ freeswitch/trunk/contrib/ledr/c/mod_odbc_query/mod_odbc_query.c	2009-10-27 09:55:49 UTC (rev 15245)
@@ -95,7 +95,7 @@
 		for (param = switch_xml_child(settings, "param"); param; param = param->next) {
 			char *var = (char *) switch_xml_attr_soft(param, "name");
 			char *val = (char *) switch_xml_attr_soft(param, "value");
-			if (!strcasecmp(var, "odbc-dsn") && (!switch_strlen_zero(val))) {
+			if (!strcasecmp(var, "odbc-dsn") && (!zstr(val))) {
 				globals.odbc_dsn = switch_core_strdup(globals.pool, val);
 				if ((odbc_user = strchr(globals.odbc_dsn, ':'))) {
 					*odbc_user++ = '\0';
@@ -112,7 +112,7 @@
 		for (query = switch_xml_child(queries, "query"); query; query = query->next) {
 			char *var = (char *) switch_xml_attr_soft(query, "name");
 			char *val = (char *) switch_xml_attr_soft(query, "value");
-			if (!switch_strlen_zero(var) && !switch_strlen_zero(val)) {
+			if (!zstr(var) && !zstr(val)) {
 				switch_core_hash_insert(globals.queries_hash, var, val);
 			}
 		}
@@ -172,7 +172,7 @@
 		return;
 	}
 
-	if (!data || switch_strlen_zero(data)) {
+	if (!data || zstr(data)) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No query provided!\n");
 	}