Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--badwolf.c4
diff --git a/badwolf.c b/badwolf.c
index cb26dcf..e9f55fc 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -193,7 +193,7 @@ webView_tab_label_change(struct Client *browser, const gchar *title)
{
GtkWidget *notebook = browser->window->notebook;
-#define title_IS_EMPTY (title == NULL) || (title == (const gchar *)"")
+#define title_IS_EMPTY strnlen(title, 2) == 0
if(title_IS_EMPTY) title = webkit_web_view_get_title(browser->webView);
if(title_IS_EMPTY) title = webkit_web_view_get_uri(browser->webView);
@@ -744,7 +744,7 @@ badwolf_get_tab_position(GtkContainer *notebook, GtkWidget *child)
int
main(int argc, char *argv[])
{
- struct Window *window = &(struct Window){NULL};
+ struct Window *window = &(struct Window){NULL, NULL, NULL};
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, DATADIR "/locale");
bind_textdomain_codeset(PACKAGE, "UTF-8");