]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_compile.c
find_cache(): Remove test that's always false.
[nmh] / sbr / fmt_compile.c
index 3930f8ca8563cc9904fe8a72a77461193a3d8dad..ff0cf0137e39fca7663ee0270fd31d9583469ea2 100644 (file)
@@ -280,11 +280,12 @@ static struct colormap colortable[] = {
 /*
  * Find a component in the hash table.
  */
-#define FINDCOMP(comp,name) \
-               for (comp = wantcomp[CHASH(name)]; \
-                    comp && strcmp(comp->c_name,name); \
-                    comp = comp->c_next) \
-               ;
+#define FINDCOMP(comp,name) do { \
+        for (comp = wantcomp[CHASH(name)]; \
+            comp && strcmp(comp->c_name,name); \
+            comp = comp->c_next) \
+        ; \
+    } while (0)
 
 /* Add new component to the hash table */
 #define NEWCOMP(cm,name) do { \