dtfile: Resolve CID 87308
authorPeter Howkins <flibble@users.sf.net>
Thu, 15 Jan 2015 15:05:45 +0000 (15:05 +0000)
committerPeter Howkins <flibble@users.sf.net>
Thu, 15 Jan 2015 15:05:45 +0000 (15:05 +0000)
cde/programs/dtfile/SharedMsgs.c

index 2813bcbb4805559ea255b01cd8e226a6f4c637be..d3f834a50b0c035a570bb33bd2369358ca82da49 100644 (file)
@@ -66,7 +66,7 @@
 #include "SharedMsgs.h"
 
 
-
+static char unknownmessage[] = "***Unknown shared message***";
 
 /************************************************************************
  *
@@ -150,5 +150,8 @@ GetSharedMessage(
          return GETMESSAGE(30,21, "File Move Error");
       case FILE_LINK_ERROR_TITLE:
          return GETMESSAGE(30,22, "File Link Error");
+      default:
+         fprintf(stderr, "GetSharedMessage: unknown message %d\n", id);
+         return unknownmessage;
    }
 }