assume buffer contains copied path if path == NULL
This commit is contained in:
parent
5a32b71a2a
commit
5f0f5db9ed
|
@ -3474,7 +3474,9 @@ char *sigar_service_exe_get(char *path, char *buffer, int basename)
|
|||
{
|
||||
char *ptr;
|
||||
|
||||
if (path) {
|
||||
strncpy(buffer, path, SIGAR_CMDLINE_MAX);
|
||||
}
|
||||
path = buffer;
|
||||
|
||||
if (*path == '"') {
|
||||
|
|
Loading…
Reference in New Issue