diff options
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/config.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybar/config.c b/swaybar/config.c index fddea791..6b9ff86b 100644 --- a/swaybar/config.c +++ b/swaybar/config.c | |||
@@ -35,9 +35,11 @@ uint32_t parse_position(const char *position) { | |||
35 | char *parse_font(const char *font) { | 35 | char *parse_font(const char *font) { |
36 | char *new_font = NULL; | 36 | char *new_font = NULL; |
37 | if (strncmp("pango:", font, 6) == 0) { | 37 | if (strncmp("pango:", font, 6) == 0) { |
38 | new_font = strdup(font + 6); | 38 | font += 6; |
39 | } | 39 | } |
40 | 40 | ||
41 | new_font = strdup(font); | ||
42 | |||
41 | return new_font; | 43 | return new_font; |
42 | } | 44 | } |
43 | 45 | ||