1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Better argfile fix (#705, fix #736)

This commit is contained in:
Nicolas Williams
2015-03-24 14:53:35 -05:00
parent ffa2832e33
commit 4f8567476d

2
main.c
View File

@@ -310,7 +310,7 @@ int main(int argc, char* argv[]) {
ret = 2;
goto out;
}
arg = jv_object_set(arg, jv_string("value"), data);
arg = jv_object_set(arg, jv_string("value"), jv_array_get(data, 0));
program_arguments = jv_array_append(program_arguments, arg);
i += 2; // skip the next two arguments
if (!short_opts) continue;