aboutsummaryrefslogtreecommitdiffstats
path: root/examples/qpdfjob-c.c
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-01 19:49:11 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-01 19:50:58 +0100
commit42bff9f4584362f2084033795896c2e891274631 (patch)
tree4c317d9db160535848b036f47dd646884e1d6ab0 /examples/qpdfjob-c.c
parenta0d9d9923ce397d46680a9b180f253b39135ece2 (diff)
downloadqpdf-42bff9f4584362f2084033795896c2e891274631.tar.zst
QPDFJob: let initializeFromArgv just take argv, not argc
Let argv be a null-terminated array. There is already code that assumes this, and it makes it easier to construct the arguments.
Diffstat (limited to 'examples/qpdfjob-c.c')
-rw-r--r--examples/qpdfjob-c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qpdfjob-c.c b/examples/qpdfjob-c.c
index da53001a..ac58b8ae 100644
--- a/examples/qpdfjob-c.c
+++ b/examples/qpdfjob-c.c
@@ -57,6 +57,6 @@ int main(int argc, char* argv[])
* qpdfjob_run_from_json instead and pass the json string as a
* single char const* argument.
*/
- r = qpdfjob_run_from_argv(5, new_argv);
+ r = qpdfjob_run_from_argv(new_argv);
return r;
}