]> granicus.if.org Git - jq/commitdiff
Revert "Better argfile fix (#705, fix #736)"
authorNicolas Williams <nico@cryptonector.com>
Fri, 29 May 2015 15:37:58 +0000 (10:37 -0500)
committerNicolas Williams <nico@cryptonector.com>
Fri, 29 May 2015 15:37:58 +0000 (10:37 -0500)
This reverts commit 4f8567476d3a6e8b5b422d05190f777221b984fb.

main.c

diff --git a/main.c b/main.c
index 2433e41870a2e10b5dbad6db4aa04e3b28146972..627719b1179d6eda5abd5971b92ab40092d72608 100644 (file)
--- a/main.c
+++ b/main.c
@@ -320,7 +320,7 @@ int main(int argc, char* argv[]) {
           ret = 2;
           goto out;
         }
-        arg = jv_object_set(arg, jv_string("value"), jv_array_get(data, 0));
+        arg = jv_object_set(arg, jv_string("value"), data);
         program_arguments = jv_array_append(program_arguments, arg);
         i += 2; // skip the next two arguments
         if (!short_opts) continue;