summaryrefslogtreecommitdiff
path: root/src/gui_beval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-06-25 17:44:49 +0200
committerBram Moolenaar <Bram@vim.org>2014-06-25 17:44:49 +0200
commitdb5ffaab5a4755981ee7eff2f044b533ce3042a9 (patch)
treed50119b7434e42e22e5787fec920a32876c7095a /src/gui_beval.c
parente8a3492548468c9d055adeb9f8d352e2c4482b19 (diff)
downloadvim-git-db5ffaab5a4755981ee7eff2f044b533ce3042a9.tar.gz
updated for version 7.4.342v7.4.342
Problem: Clang gives warnings. Solution: Add an else block. (Dominique Pelle)
Diffstat (limited to 'src/gui_beval.c')
-rw-r--r--src/gui_beval.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui_beval.c b/src/gui_beval.c
index fe930f3fa..ae7845660 100644
--- a/src/gui_beval.c
+++ b/src/gui_beval.c
@@ -1193,11 +1193,13 @@ drawBalloon(beval)
XmFontList fl;
fl = gui_motif_fontset2fontlist(&gui.tooltip_fontset);
- if (fl != NULL)
+ if (fl == NULL)
{
- XmStringExtent(fl, s, &w, &h);
- XmFontListFree(fl);
+ XmStringFree(s);
+ return;
}
+ XmStringExtent(fl, s, &w, &h);
+ XmFontListFree(fl);
}
w += gui.border_offset << 1;
h += gui.border_offset << 1;