From 3d530af8eff621fc11a265068e204f0eaac5abd8 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(-) (limited to 'player') diff --git a/player/misc.c b/player/misc.c index 5e3299645e..c1b7d98182 100644 --- a/player/misc.c +++ b/player/misc.c @@ -139,7 +139,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