about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/themes.c2
-rw-r--r--src/ui/mucwin.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/themes.c b/src/plugins/themes.c
index 42e7b7a1..f441af84 100644
--- a/src/plugins/themes.c
+++ b/src/plugins/themes.c
@@ -74,7 +74,7 @@ plugin_themes_close(void)
 theme_item_t
 plugin_themes_get(const char *const group, const char *const key, const char *const def)
 {
-    if (group && key && def && g_key_file_has_key(themes, group, key, NULL)) {
+    if (group && key && g_key_file_has_key(themes, group, key, NULL)) {
         gchar *result = g_key_file_get_string(themes, group, key, NULL);
 
         theme_item_t ret;
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c
index e3826eb1..4d323ef1 100644
--- a/src/ui/mucwin.c
+++ b/src/ui/mucwin.c
@@ -32,6 +32,8 @@
  *
  */
 
+#define _GNU_SOURCE 1
+
 #include <string.h>
 #include <assert.h>
 #include <stdlib.h>