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