From: JSmith-BitFlipper Date: Sun, 20 Sep 2015 17:56:44 +0000 (-0400) Subject: Resolved potential bug X-Git-Tag: 2.10~19^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2cd5c86915aae485acd1dfbca41705245407b079;p=i3%2Fi3status Resolved potential bug This pull request is in response to #61 --- 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)) \