diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mpd_error.h | 4 | ||||
-rw-r--r-- | src/output_all.c | 2 |
2 files changed, 3 insertions, 3 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 diff --git a/src/output_all.c b/src/output_all.c index 3f582dcb4..2c43d9f5a 100644 --- a/src/output_all.c +++ b/src/output_all.c @@ -124,7 +124,7 @@ audio_output_all_init(void) if (!audio_output_init(output, param, &error)) { if (param != NULL) MPD_ERROR("line %i: %s", - param->line, error->message) + param->line, error->message); else MPD_ERROR("%s", error->message); } |