diff options
author | wm4 <wm4@nowhere> | 2014-05-11 16:15:42 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-24 16:39:52 +0200 |
commit | 3795154155c59ac0827fc45d8cf5f0512fc33217 (patch) | |
tree | 1e5d8d090a1f5573b9dfb998ee53abe12678fa1f | |
parent | 461198e149ab40f4969d4c2bd6b3c0a9fffebe1b (diff) | |
download | mpv-3795154155c59ac0827fc45d8cf5f0512fc33217.tar.bz2 mpv-3795154155c59ac0827fc45d8cf5f0512fc33217.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.
-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 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); |