mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-11785 [core] fix scan-build issues
This commit is contained in:
committed by
Andrey Volk
parent
bc6fe22a0b
commit
239bf913f4
+1
-1
@@ -1240,7 +1240,7 @@ int main(int argc, char *argv[])
|
||||
int j = 0;
|
||||
|
||||
switch_sleep(1000000);
|
||||
if (!argv || execv(argv[0], argv) == -1) {
|
||||
if (!argv || !argv[0] || execv(argv[0], argv) == -1) {
|
||||
fprintf(stderr, "Restart Failed [%s] resorting to plan b\n", strerror(errno));
|
||||
for (j = 0; j < argc; j++) {
|
||||
switch_snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%s ", argv[j]);
|
||||
|
||||
Reference in New Issue
Block a user