Skip to contentSkip to conversation

Fixup varags usage

PATCH New Hannes Reinecke 1 participant 1 message Apr 30, 2008 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixup varags usage

We already call va_end() at the correct position, no need to duplicate it in log_safe().

---
 libmultipath/log_pthread.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
libmultipath/log_pthread.c +0 -2
index 8976bfb..8909440 100644
@@ -15,9 +15,7 @@
 void log_safe (int prio, const char * fmt, va_list ap)
 {
 	pthread_mutex_lock(logq_lock);
-	//va_start(ap, fmt);
 	log_enqueue(prio, fmt, ap);
-	va_end(ap);
 	pthread_mutex_unlock(logq_lock);
 
 	pthread_mutex_lock(logev_lock);
Signature · 1 line
1.5.2.4