small fix to prevent compiler warning
[rocksndiamonds.git] / src / editor.c
index d104ae422880c9a47ba2bb9c0e9da67636ddd716..1b72d69b4a9514921e37e88a2f21d25e06a825ee 100644 (file)
@@ -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);