summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivy.c')
-rw-r--r--src/ivy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ivy.c b/src/ivy.c
index af7cdc9..5f5a93c 100644
--- a/src/ivy.c
+++ b/src/ivy.c
@@ -750,6 +750,7 @@ int IvySendMsg(const char *fmt, ...)
static IvyBuffer buffer = { NULL, 0, 0}; /* Use satic mem to eliminate multiple call to malloc /free */
va_list ap;
+ if( fmt == 0 || strlen(fmt) == 0 ) return 0;
va_start( ap, fmt );
buffer.offset = 0;
make_message( &buffer, fmt, ap );