aboutsummaryrefslogtreecommitdiff
path: root/libi3
diff options
context:
space:
mode:
authorOrestis Floros <orestisf1993@gmail.com>2019-03-29 02:36:24 +0200
committerOrestis Floros <orestisf1993@gmail.com>2019-03-29 12:30:04 +0200
commit08cdc3a6ae56623c7604af690c3fd2ef238d9ffa (patch)
tree5e84b04525115835637bd9c99994af3825ecbc6f /libi3
parent7754de900aa41eeedf6d3ce4d661b550b7a60177 (diff)
downloadi3-08cdc3a6ae56623c7604af690c3fd2ef238d9ffa.tar.gz
i3-08cdc3a6ae56623c7604af690c3fd2ef238d9ffa.zip
Allow checking for duplicate bindings with -C
- Having both parse_configuration and parse_file is excessive now - We detect if we are parsing only by checking if conn is NULL, not with use_nagbar - font.pattern needs to be set to NULL because it is freed in free_font() Fixes #3660
Diffstat (limited to 'libi3')
-rw-r--r--libi3/font.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libi3/font.c b/libi3/font.c
index c06bae00..e16ce85e 100644
--- a/libi3/font.c
+++ b/libi3/font.c
@@ -163,6 +163,7 @@ i3Font load_font(const char *pattern, const bool fallback) {
i3Font font;
font.type = FONT_TYPE_NONE;
+ font.pattern = NULL;
/* No XCB connction, return early because we're just validating the
* configuration file. */