mirror of https://github.com/mpv-player/mpv
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:
parent
0d916c7f96
commit
3d530af8ef
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue