[sr-dev] git:5.0:ccf6bfe1: core: check for optarg before passing it to external library (coverity report)