Commit 99a02e3d authored by Bastien Nocera's avatar Bastien Nocera

Don't pass garbage to AddItem

if some arguments aren't present in playlist.add
parent 183b9c1b
......@@ -80,10 +80,12 @@ totemConePlaylist::InvokeByIndex (int aIndex,
return false;
NPString title;
GetNPStringFromArguments (argv, argc, 1, title);
if (!GetNPStringFromArguments (argv, argc, 1, title))
title.UTF8Characters = NULL;
NPString options;
GetNPStringFromArguments (argv, argc, 2, options);
if (!GetNPStringFromArguments (argv, argc, 2, options))
options.UTF8Characters = NULL;
//FIXME handle options as array
char *subtitle = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment