summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mpd-notification.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index bf4ebc9..65fa380 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -306,7 +306,7 @@ int main(int argc, char ** argv) {
/* ignore if we have no title */
if (title == NULL)
- continue;
+ goto nonotification;
/* initial allocation and string termination */
notifystr = strdup("");
@@ -383,6 +383,7 @@ int main(int argc, char ** argv) {
}
errcount = 0;
+nonotification:
if (notifystr != NULL) {
free(notifystr);
notifystr = NULL;