summaryrefslogtreecommitdiffstats
path: root/swaybar/status_line.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/status_line.c')
-rw-r--r--swaybar/status_line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c
index bbb798f1..0f88cfc8 100644
--- a/swaybar/status_line.c
+++ b/swaybar/status_line.c
@@ -121,7 +121,7 @@ static void parse_json(struct bar *bar, const char *text) {
121 new->min_width = json_object_get_int(min_width); 121 new->min_width = json_object_get_int(min_width);
122 } else if (type == json_type_string) { 122 } else if (type == json_type_string) {
123 /* the width will be calculated when rendering */ 123 /* the width will be calculated when rendering */
124 new->min_width = 0; 124 new->min_width_str = strdup(json_object_get_string(min_width));
125 } 125 }
126 } 126 }
127 127