summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcollins <tailor@grayson>2006-06-01 13:19:44 -0400
committerBen Collins <bcollins@ubuntu.com>2006-06-01 13:19:44 -0400
commitf7fc95574e80a610ed077b73dd8602202cbd8cea (patch)
tree4836b0099d15d5828c29335e2c68ab488525ae45
parent4847c91dd6d72d75eeedb135abb2a526e8b19fb6 (diff)
downloadsilo-f7fc95574e80a610ed077b73dd8602202cbd8cea.tar.gz
[silo @ 156]
Fix empty file for print_message.#
-rw-r--r--second/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/second/misc.c b/second/misc.c
index 2a4a520..898be1d 100644
--- a/second/misc.c
+++ b/second/misc.c
@@ -439,7 +439,9 @@ void print_message (char *msg)
} else continue;
if (curly && *p == '}') p++;
msg = p;
- } else {
+ } else if (!*p) {
+ break;
+ } else {
printf ("%s", msg);
break;
}