sh: Fix corner case if script doesn't print any error message.
commit78f89ffb81e81002d43198b3ccb6b19b3801966d
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 8 Nov 2019 18:16:48 +0000 (8 18:16 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 8 Nov 2019 18:16:48 +0000 (8 18:16 +0000)
treefbf07d1fd50cced9627e8d7a0a1bb0d76644a56d
parent3e070409f5722b83551505ff0e1e463f86a0c1b1
sh: Fix corner case if script doesn't print any error message.

It's possible that handle_script_error (NULL, 0) is called, but this
passes NULL to functions such as strncasecmp which may cause a
segfault.  Handle this special case.

Bug found by Coverity.
plugins/sh/call.c