diff src/bar_exif.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 eebb8d0cb677
line wrap: on
line diff
--- a/src/bar_exif.c	Mon Feb 23 22:13:09 2009 +0000
+++ b/src/bar_exif.c	Tue Feb 24 17:47:45 2009 +0000
@@ -425,8 +425,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);