diff options
author | wm4 <wm4@nowhere> | 2014-05-11 16:15:42 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-11 16:41:09 +0200 |
commit | 3d530af8eff621fc11a265068e204f0eaac5abd8 (patch) | |
tree | 44a70f2ebeca04e6925a1ab51ee8ab75542022eb /player/misc.c | |
parent | 0d916c7f96e3ade4ea3dd19041e3f157ac2ef423 (diff) | |
download | mpv-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/misc.c')
-rw-r--r-- | player/misc.c | 2 |
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); |