From 3795154155c59ac0827fc45d8cf5f0512fc33217 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 11 May 2014 16:15:42 +0200 Subject: player: don't assign "false" to pointer This is legal in theory. "false" expand to 0, and 0 is a valid pointer value. But I guess this was not really intended. Found by cppcheck. --- player/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/misc.c b/player/misc.c index cfb995f59a..0825172f62 100644 --- a/player/misc.c +++ b/player/misc.c @@ -138,7 +138,7 @@ void update_window_title(struct MPContext *mpctx, bool force) { if (!mpctx->video_out && !mpctx->ao) { talloc_free(mpctx->last_window_title); - mpctx->last_window_title = false; + mpctx->last_window_title = NULL; return; } char *title = mp_property_expand_string(mpctx, mpctx->opts->wintitle); -- cgit v1.2.3