libgda r3152 - in trunk: . libgda



Author: vivien
Date: Tue May 20 19:33:30 2008
New Revision: 3152
URL: http://svn.gnome.org/viewvc/libgda?rev=3152&view=rev

Log:
2008-05-20  Vivien Malerba <malerba gnome-db org>

	* libgda/gda-connection.c: applied path to fxi compiler warnings (thanks to
	Phil Longstaff)


Modified:
   trunk/ChangeLog
   trunk/libgda/gda-connection.c

Modified: trunk/libgda/gda-connection.c
==============================================================================
--- trunk/libgda/gda-connection.c	(original)
+++ trunk/libgda/gda-connection.c	Tue May 20 19:33:30 2008
@@ -3063,10 +3063,13 @@
 		va_list ap;
 		key.filters = g_new (gchar *, nb_filters);
 		va_start (ap, nb_filters);
-		for (i = 0, fname = va_arg (ap, gchar*); fname && (i < nb_filters); fname = va_arg (ap, gchar*), i++) {
+		for (i = 0; (i < nb_filters); i++) {
 			GdaHolder *h;
 			GValue *v;
 			
+			fname = va_arg (ap, gchar*);
+			if (!fname)
+				break;
 			v = va_arg (ap, GValue*);
 			if (!v || gda_value_is_null (v))
 				continue;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]