Commit ce6a6017 authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

Fix passing of null pointer to changed LAL API

parent 43461a8c
......@@ -1832,14 +1832,14 @@ void LALInferenceParseCharacterOptionString(char *input, char **strings[], UINT4
ProcessParamsTable *LALInferenceParseCommandLine(int argc, char *argv[])
{
LALStringVector *args=XLALCreateStringVector(NULL);
for(int i=0;i<argc;i++)
{
args=XLALAppendString2Vector(args, argv[i]);
}
LALStringVector *args=XLALCreateEmptyStringVector(0);
for(int i=0;i<argc;i++)
{
args=XLALAppendString2Vector(args, argv[i]);
}
ProcessParamsTable *ppt=LALInferenceParseStringVector(args);
XLALDestroyStringVector(args);
return(ppt);
XLALDestroyStringVector(args);
return(ppt);
}
ProcessParamsTable *LALInferenceParseStringVector(LALStringVector *arglist)
......
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