seamus

commit 525f446648ed944ca979cd6e30689860f491c334

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

status: deal with stopped state

 src/status.c | 8 ++++++++


diff --git a/src/status.c b/src/status.c
index 2fafb115dace17a109b58b86693ec62f89e1d240..ef7052db780004a9a801cdc95a46ed46f7401ac3 100644
--- a/src/status.c
+++ b/src/status.c
@@ -82,6 +82,14 @@ 			free(elapsed_time);
 			free(str);
 			mpd_song_free(song);
 		}
+	} else {
+		const char *stat = "Stopped";
+
+		// This works like a charm, albeit it's ugly:
+		s->current_status = malloc(sizeof(char) * strlen(stat));
+		strcpy(s->current_status, stat);
+
+		return 0;
 	}
 
 	mpd_status_free(status);