X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Feditor.c;h=1b72d69b4a9514921e37e88a2f21d25e06a825ee;hp=d104ae422880c9a47ba2bb9c0e9da67636ddd716;hb=60e1ff3b2d74383ed9975a185a3c56fb3c2acad0;hpb=eb51a78900b95e3f7c9c3fbc9e4cf9360b374188 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);