From 60e1ff3b2d74383ed9975a185a3c56fb3c2acad0 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 14 Jun 2016 13:21:01 +0200 Subject: [PATCH] small fix to prevent compiler warning --- src/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index d104ae42..1b72d69b 100644 --- a/src/editor.c +++ b/src/editor.c @@ -12051,7 +12051,7 @@ void PrintEditorGadgetInfoText(struct GadgetInfo *gi) char shortcut[MAX_OUTPUT_LINESIZE + 1]; int max_infotext_len = getMaxInfoTextLength(); - if (gi == NULL || gi->info_text == NULL) + if (gi == NULL || strlen(gi->info_text) == 0) return; strncpy(infotext, gi->info_text, max_infotext_len); -- 2.34.1