From 03997fa14c3d0814187469d97c21198b1da66ef9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Mon, 1 Feb 2010 13:20:49 +0100 Subject: [PATCH] mozilla: really fix compilation (and check the return code). --- projects/mozilla/vlcplugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp index 0ea739c0d8..f6b88322f8 100644 --- a/projects/mozilla/vlcplugin.cpp +++ b/projects/mozilla/vlcplugin.cpp @@ -353,6 +353,8 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[]) } libvlc_instance = libvlc_new(ppsz_argc, ppsz_argv); + if( !libvlc_instance ) + return NPERR_GENERIC_ERROR; libvlc_media_list = libvlc_media_list_new(libvlc_instance); /* -- 2.39.2