[asterisk-addons-commits] qwell: trunk r367 - /trunk/res_config_mysql.c

asterisk-addons-commits at lists.digium.com asterisk-addons-commits at lists.digium.com
Mon Apr 16 08:39:42 MST 2007


Author: qwell
Date: Mon Apr 16 10:39:42 2007
New Revision: 367

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=367
Log:
Yet some more cleanup!

Issue #9541

Modified:
    trunk/res_config_mysql.c

Modified: trunk/res_config_mysql.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/res_config_mysql.c?view=diff&rev=367&r1=366&r2=367
==============================================================================
--- trunk/res_config_mysql.c (original)
+++ trunk/res_config_mysql.c Mon Apr 16 10:39:42 2007
@@ -295,6 +295,8 @@
 				continue;
 			}
 			for (i = 0; i < numFields; i++) {
+				if (ast_strlen_zero(row[i]))
+					continue;
 				for (stringp = ast_strdupa(row[i]), chunk = strsep(&stringp, ";"); chunk; chunk = strsep(&stringp, ";")) {
 					if (chunk && !ast_strlen_zero(ast_strip(chunk))) {
 						if (initfield && !strcmp(initfield, fields[i].name)) {



More information about the asterisk-addons-commits mailing list