From 6bdb9a76ebb0c2481e9d9443884550d52493cdf7 Mon Sep 17 00:00:00 2001 From: Benoit Dejean Date: Sun, 21 Jun 2015 21:44:32 +0200 Subject: [PATCH] Fixed glibtop_debug for calls without arguments. --- include/glibtop/error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/glibtop/error.h b/include/glibtop/error.h index 6cc10a7f..76e1abe8 100644 --- a/include/glibtop/error.h +++ b/include/glibtop/error.h @@ -50,7 +50,7 @@ void glibtop_warn_io (const char *format, ...) G_GNUC_PRINTF(1, 2); #define glibtop_debug(fmt, ...) \ G_STMT_START { \ if (LIBGTOP_ENABLE_DEBUG) \ - glibtop_debug_r(glibtop_global_server, fmt, __VA_ARGS__); \ + glibtop_debug_r(glibtop_global_server, fmt, ##__VA_ARGS__); \ } G_STMT_END void glibtop_debug_vr (glibtop *server, const char *format, va_list args);