diff src/bar_keywords.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 361120a66609
line wrap: on
line diff
--- a/src/bar_keywords.c	Mon Feb 23 22:13:09 2009 +0000
+++ b/src/bar_keywords.c	Tue Feb 24 17:47:45 2009 +0000
@@ -838,9 +838,9 @@
 		const gchar *option = *attribute_names++;
 		const gchar *value = *attribute_values++;
 
-		READ_CHAR_FULL("pane.title", title);
-		READ_CHAR_FULL("key", key);
-		READ_BOOL_FULL("pane.expanded", expanded);
+		if (READ_CHAR_FULL("pane.title", title)) continue;
+		if (READ_CHAR_FULL("key", key)) continue;
+		if (READ_BOOL_FULL("pane.expanded", expanded)) continue;
 		
 
 		DEBUG_1("unknown attribute %s = %s", option, value);