remove unused var
This commit is contained in:
parent
ca68b62e7e
commit
77e652803d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue