aboutsummaryrefslogtreecommitdiffstats
path: root/src/mpd_error.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mpd_error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mpd_error.h b/src/mpd_error.h
index 95e120572..47618d03c 100644
--- a/src/mpd_error.h
+++ b/src/mpd_error.h
@@ -28,9 +28,9 @@
* proper error handling. */
#define MPD_ERROR(...) \
- { \
+ do { \
g_critical(__VA_ARGS__); \
exit(EXIT_FAILURE); \
- }
+ } while(0)
#endif