Lines 556-563
Link Here
|
556 |
|
556 |
|
557 |
char *ch_root = rc_service_value_get(basename_c(service), "chroot"); |
557 |
char *ch_root = rc_service_value_get(basename_c(service), "chroot"); |
558 |
char *spidfile = pidfile; |
558 |
char *spidfile = pidfile; |
559 |
if (ch_root) { |
559 |
if (ch_root && pidfile) { |
560 |
spidfile = malloc(strlen(ch_root) + strlen(pidfile)); |
560 |
spidfile = malloc(strlen(ch_root) + strlen(pidfile) + 1); |
561 |
strcpy(spidfile, ch_root); |
561 |
strcpy(spidfile, ch_root); |
562 |
strcat(spidfile, pidfile); |
562 |
strcat(spidfile, pidfile); |
563 |
} |
563 |
} |