summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-04 20:02:22 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-04 20:02:22 +0000
commitb55689701f5e4eaccaa7ac0ca9d404a2064b2d3c (patch)
tree323a1a022960360a237720c834c22ddd2595be8d
parentcbf92a3a8e9f1f31381dacba94521fbd9d840971 (diff)
downloaddrakx-b55689701f5e4eaccaa7ac0ca9d404a2064b2d3c.tar
drakx-b55689701f5e4eaccaa7ac0ca9d404a2064b2d3c.tar.gz
drakx-b55689701f5e4eaccaa7ac0ca9d404a2064b2d3c.tar.bz2
drakx-b55689701f5e4eaccaa7ac0ca9d404a2064b2d3c.tar.xz
drakx-b55689701f5e4eaccaa7ac0ca9d404a2064b2d3c.zip
try to not segfault when a NULL pointer is passed to log_message (unimplemented clnt_sperror and alike functions from dietlibc)
-rw-r--r--mdk-stage1/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdk-stage1/log.c b/mdk-stage1/log.c
index e41653305..a4b97c988 100644
--- a/mdk-stage1/log.c
+++ b/mdk-stage1/log.c
@@ -60,6 +60,8 @@ void vlog_message(const char * s, va_list args)
void log_message(const char * s, ...)
{
va_list args;
+ if (!s)
+ return;
va_start(args, s);
vlog_message(s, args);
va_end(args);