client: Make skipping option appending in handle_job_opt() more selective
authorBart Van Assche <bvanassche@acm.org>
Fri, 7 Feb 2020 14:54:29 +0000 (06:54 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sun, 24 May 2020 22:12:30 +0000 (15:12 -0700)
commit6c424d93e52538ffad36dbf6f544b4ad9c441fb4
tree14b907e92c740dbcd4244def1ba283c2bfde9b18
parent9b67d883adebfb3bbe594ca5c2e3edf1cd77693f
client: Make skipping option appending in handle_job_opt() more selective

Instead of not appending an option to the option list if JSON output is
disabled, only skip appending an option to the JSON option list. See also
commit b127b679769c ("client: fix segfault for !json output").

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
client.c