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.
This commit is contained in:
wm4 2014-05-11 16:15:42 +02:00
parent 0d916c7f96
commit 3d530af8ef
1 changed files with 1 additions and 1 deletions

View File

@ -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);