summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1d7e2d6)
raw | patch | inline | side by side (parent: 1d7e2d6)
author | Max Kellermann <max.kellermann@gmail.com> | |
Fri, 17 Mar 2017 22:27:12 +0000 (23:27 +0100) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Fri, 17 Mar 2017 22:27:12 +0000 (23:27 +0100) |
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index fe21c6bcf6c947605c8af89a6c581bd5b2759457..88e6f221fc89afb891470a29027fe2afccd8e044 100644 (file)
--- a/src/main.c
+++ b/src/main.c
static void
update_xterm_title(void)
{
- struct mpd_status *status = NULL;
- const struct mpd_song *song = NULL;
- if (mpd) {
- status = mpd->status;
- song = mpd->song;
- }
+ struct mpd_status *status = mpd->status;
+ const struct mpd_song *song = mpd->song;
char tmp[BUFSIZE];
if (options.xterm_title_format && status && song &&
#endif
printf("\n");
- if (mpd) {
- mpdclient_free(mpd);
- }
+ mpdclient_free(mpd);
}
#ifndef WIN32