From: Niels Provos Date: Tue, 28 Mar 2006 04:17:51 +0000 (+0000) Subject: some nit-picking from poul-henning kamp X-Git-Tag: release-2.0.1-alpha~739 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a32839c8ecfee948bc8c051857c9ea454de937e6;p=libevent some nit-picking from poul-henning kamp svn:r208 --- diff --git a/http.c b/http.c index 40fb1030..9ff4dc4a 100644 --- a/http.c +++ b/http.c @@ -917,7 +917,8 @@ evhttp_connect(const char *address, unsigned short port, return (evcon); error: - evhttp_connection_free(evcon); + if (evcon != NULL) + evhttp_connection_free(evcon); return (NULL); } diff --git a/log.h b/log.h index 6ec56b42..1f843cf9 100644 --- a/log.h +++ b/log.h @@ -37,7 +37,7 @@ void _event_debugx(const char *fmt, ...); #ifdef USE_DEBUG #define event_debug(x) _event_debugx x #else -#define event_debug(x) +#define event_debug(x) do {;} while (0) #endif #endif diff --git a/select.c b/select.c index f4a3c3c3..0f6c29b3 100644 --- a/select.c +++ b/select.c @@ -131,7 +131,7 @@ check_selectop(struct selectop *sop) } #else -#define check_selectop(sop) +#define check_selectop(sop) do {;} while (0) #endif /*