From: Holger Schemel Date: Tue, 14 Jun 2016 11:21:01 +0000 (+0200) Subject: small fix to prevent compiler warning X-Git-Tag: 4.0.0.0-rc3~6 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=60e1ff3b2d74383ed9975a185a3c56fb3c2acad0;p=rocksndiamonds.git small fix to prevent compiler warning --- 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);