diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-04 21:23:20 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-11-04 21:23:20 +0000 |
commit | 6ecce01f05977b1ee5077b6d5ea78f210f91293c (patch) | |
tree | 7c5b607dacddee9b9221c3a640e399b196d0afe0 | |
parent | 7e6aa27467ccf9ef08cbe843b7641545e7c855ac (diff) | |
download | drakx-6ecce01f05977b1ee5077b6d5ea78f210f91293c.tar drakx-6ecce01f05977b1ee5077b6d5ea78f210f91293c.tar.gz drakx-6ecce01f05977b1ee5077b6d5ea78f210f91293c.tar.bz2 drakx-6ecce01f05977b1ee5077b6d5ea78f210f91293c.tar.xz drakx-6ecce01f05977b1ee5077b6d5ea78f210f91293c.zip |
don't segfault on NULL stuff
-rw-r--r-- | mdk-stage1/dietlibc/lib/__v_printf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/lib/__v_printf.c b/mdk-stage1/dietlibc/lib/__v_printf.c index 15011cdd8..1ff63bec1 100644 --- a/mdk-stage1/dietlibc/lib/__v_printf.c +++ b/mdk-stage1/dietlibc/lib/__v_printf.c @@ -30,6 +30,7 @@ int __v_printf(struct arg_printf* fn, const unsigned char *format, va_list arg_p { int len=0; + if (format) while (*format) { unsigned int sz = skip_to(format); if (sz) { |