summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-11 16:15:42 +0200
committerwm4 <wm4@nowhere>2014-05-11 16:41:09 +0200
commit3d530af8eff621fc11a265068e204f0eaac5abd8 (patch)
tree44a70f2ebeca04e6925a1ab51ee8ab75542022eb /player
parent0d916c7f96e3ade4ea3dd19041e3f157ac2ef423 (diff)
downloadmpv-3d530af8eff621fc11a265068e204f0eaac5abd8.tar.bz2
mpv-3d530af8eff621fc11a265068e204f0eaac5abd8.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/misc.c2
1 files changed, 1 insertions, 1 deletions
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);