Remove an illegal optimization that breaks on all platforms where
va_list is not a pointer. From NetBSD. ok shell@
This commit is contained in:
parent
c029ec1db4
commit
9c57423cef
21
security/gpa/patches/patch-jnlib_logging_c
Normal file
21
security/gpa/patches/patch-jnlib_logging_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-jnlib_logging_c,v 1.1 2002/11/30 16:04:05 naddy Exp $
|
||||
--- jnlib/logging.c.orig Sat Nov 30 13:51:07 2002
|
||||
+++ jnlib/logging.c Sat Nov 30 13:51:54 2002
|
||||
@@ -226,14 +226,9 @@ log_printf( const char *fmt, ... )
|
||||
{
|
||||
va_list arg_ptr ;
|
||||
|
||||
- if( !fmt ) {
|
||||
- do_logv( MY_LOG_BEGIN, NULL, NULL );
|
||||
- }
|
||||
- else {
|
||||
- va_start( arg_ptr, fmt ) ;
|
||||
- do_logv( MY_LOG_CONT, fmt, arg_ptr );
|
||||
- va_end(arg_ptr);
|
||||
- }
|
||||
+ va_start( arg_ptr, fmt ) ;
|
||||
+ do_logv( MY_LOG_CONT, fmt, arg_ptr );
|
||||
+ va_end(arg_ptr);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user