diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 23c6b292..1af582b5 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -693,7 +693,7 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid, int fd, status; char buffer[BUFSIZ]; char *argvb[56]; - char *arg, **argvp = argvb; + char **argvp = argvb; int n; size_t nread = 0; @@ -727,8 +727,6 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid, (char **)malloc(sizeof(*(procargs->data)) * procargs->size); - arg = buffer; - for (n = 0; n < pinfo->pr_argc; n++) { int alen; char *arg;