]> git.sur5r.net Git - i3/i3status/blobdiff - include/i3status.h
Resolved potential bug
[i3/i3status] / include / i3status.h
index 05827a9e73de640d371c5dae44f209d67e058aa5..024f2541146feb3f698304614cff7d375c8cd7a9 100644 (file)
@@ -56,7 +56,7 @@ enum { O_DZEN2,
 /* Allows for the definition of a variable without opening a new scope, thus
  * suited for usage in a macro. Idea from wmii. */
 #define with(type, var, init) \
-    for (type var = (type)-1; (var == (type)-1) && ((var = (init)) || 1);)
+    for (type var = (type)-1; (var == (type)-1) && ((var = (init)) || 1); var = (type)1)
 
 #define CASE_SEC(name)              \
     if (BEGINS_WITH(current, name)) \