summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2015-09-24 13:42:31 +0200
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2015-09-24 13:42:31 +0200
commitc3a61ff0f429726aff7fae6f8e287feb3ab96366 (patch)
tree6a9193f2c17750be1a298aa27994df21da758946 /include
parentfb57fca5c26e1513288cb591fa726e7d8a2603ea (diff)
parent2cd5c86915aae485acd1dfbca41705245407b079 (diff)
Merge pull request #63 from JSmith-BitFlipper/patch-1
Resolved potential bug
Diffstat (limited to 'include')
-rw-r--r--include/i3status.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h
index 05827a9..024f254 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -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)) \