From 90e57fc266434a94966c95d8b79da82a5d088c66 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Apr 2013 14:34:46 +0200 Subject: command: fix deref before NULL check Was accidentally broken in the last global variable removal round. --- core/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/command.c b/core/command.c index 095e50f4a2..6a1c868ee1 100644 --- a/core/command.c +++ b/core/command.c @@ -851,9 +851,9 @@ static int mp_property_fullscreen(m_option_t *prop, void *arg, MPContext *mpctx) { - struct mp_vo_opts *opts = mpctx->video_out->opts; if (!mpctx->video_out) return M_PROPERTY_UNAVAILABLE; + struct mp_vo_opts *opts = mpctx->video_out->opts; if (action == M_PROPERTY_SET) { if (opts->fs == !!*(int *) arg) -- cgit v1.2.3