X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/106005004ec79d27c897a338a80eca8941208914..27d3cdbc943a57d64f4f2a35a4f1e1b15d9ca41f:/clientserver.c diff --git a/clientserver.c b/clientserver.c index debc4fec..f7293bf5 100644 --- a/clientserver.c +++ b/clientserver.c @@ -353,7 +353,7 @@ static int start_daemon(int fd) io_printf(fd,"@RSYNCD: %d\n", PROTOCOL_VERSION); motd = lp_motd_file(); - if (*motd) { + if (motd && *motd) { FILE *f = fopen(motd,"r"); while (f && !feof(f)) { int len = fread(line, 1, sizeof(line)-1, f);