From e009cd9ea986f587d6ffa8ca0107b497e3935327 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Thu, 20 Sep 2012 12:48:14 +0400 Subject: [PATCH] (create_dlg): ignore empty string as title. Signed-off-by: Andrew Borodin --- lib/widget/dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/dialog.c b/lib/widget/dialog.c index 2fb95464a..745a82b4f 100644 --- a/lib/widget/dialog.c +++ b/lib/widget/dialog.c @@ -803,7 +803,7 @@ create_dlg (gboolean modal, int y1, int x1, int lines, int cols, new_d->mouse_status = MOU_UNHANDLED; /* Strip existing spaces, add one space before and after the title */ - if (title != NULL) + if (title != NULL && *title != '\0') { char *t; -- 2.11.4.GIT