diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-12-25 16:14:22 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-12-25 16:14:22 +0100 |
commit | d5a01cb8b31bd0791d1617c56d4c669a02018bd7 (patch) | |
tree | e617d42e67c08056030512d2c4367bf03854eb34 | |
parent | f46d2e54a82086eddcd9cd91e7908e87d7424148 (diff) |
udevadm: logging - copy va_list and do not use it twice
-rw-r--r-- | udev/udevadm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/udev/udevadm.c b/udev/udevadm.c index 00c2350d35..21b7f616c3 100644 --- a/udev/udevadm.c +++ b/udev/udevadm.c @@ -35,7 +35,11 @@ static void log_fn(struct udev *udev, int priority, fprintf(stderr, "%s: ", fn); vfprintf(stderr, format, args); } else { - vfprintf(stderr, format, args); + va_list args2; + + va_copy(args2, args); + vfprintf(stderr, format, args2); + va_end(args2); vsyslog(priority, format, args); } } |