about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--misc/syslog.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index be5c96160e..a411e73805 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-06-14  Ulrich Drepper  <drepper@redhat.com>
+
+	* misc/syslog.c (vsyslog): Initialize msgoff in all cases.
+
 2000-06-14  Kazumoto Kojima  <kkojima@rr.iij4u.or.jp>
 
 	* sysdeps/sh/sh4/fpu/fclrexcpt.c: Remove definitions for backward
diff --git a/misc/syslog.c b/misc/syslog.c
index c44f941411..b89055b7b2 100644
--- a/misc/syslog.c
+++ b/misc/syslog.c
@@ -160,6 +160,7 @@ vsyslog(pri, fmt, ap)
 	    *endp = '\0';
 	    buf = failbuf;
 	    bufsize = endp - failbuf;
+	    msgoff = 0;
 	  }
 	else
 	  {