diff src/bar_histogram.c @ 1315:c1d108ab3388

Since READ_*() macros are now exported, do not hide the if() continue; statement in them. Wrap WRITE_STRING() instructions in a safer do {} while (0).
author zas_
date Tue, 24 Feb 2009 17:47:45 +0000
parents 8cca18bce950
children 358685fb9dc9
line wrap: on
line diff
--- a/src/bar_histogram.c	Mon Feb 23 22:13:09 2009 +0000
+++ b/src/bar_histogram.c	Tue Feb 24 17:47:45 2009 +0000
@@ -199,8 +199,8 @@
 		const gchar *option = *attribute_names++;
 		const gchar *value = *attribute_values++;
 
-		READ_CHAR_FULL("pane.title", title);
-		READ_BOOL_FULL("pane.expanded", expanded);
+		if (READ_CHAR_FULL("pane.title", title)) continue;
+		if (READ_BOOL_FULL("pane.expanded", expanded)) continue;
 		
 
 		DEBUG_1("unknown attribute %s = %s", option, value);