diff options
| author | H. Peter Anvin <hpa@zytor.com> | 2009-11-19 16:52:11 -0800 |
|---|---|---|
| committer | H. Peter Anvin <hpa@zytor.com> | 2009-11-19 16:52:11 -0800 |
| commit | bc06fce990b5bb8559d37eb2d2a7aa8c69ca024b (patch) | |
| tree | 95687475bd42e11a1db3832971969abc33c70705 /com32/lib/dprintf.c | |
| parent | 8b5bef3b13cf05f4e661370ee353a4a86c00ea11 (diff) | |
| download | syslinux-bc06fce990b5bb8559d37eb2d2a7aa8c69ca024b.tar.gz | |
dprintf: fix uninitialized pointer; return void
Fix an uninitialized pointer bug; return void rather than returning
int like normal printfs... if we're depending on the return value of a
debugging function we're screwed when debugging is disabled.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/dprintf.c')
| -rw-r--r-- | com32/lib/dprintf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/com32/lib/dprintf.c b/com32/lib/dprintf.c index ab431d8a..900c0a47 100644 --- a/com32/lib/dprintf.c +++ b/com32/lib/dprintf.c @@ -9,13 +9,11 @@ #define DEBUG 1 #include <dprintf.h> -int dprintf(const char *format, ...) +void dprintf(const char *format, ...) { va_list ap; - int rv; va_start(ap, format); - rv = vdprintf(format, ap); + vdprintf(format, ap); va_end(ap); - return rv; } |
