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;
|
int fd, status;
|
||||||
char buffer[BUFSIZ];
|
char buffer[BUFSIZ];
|
||||||
char *argvb[56];
|
char *argvb[56];
|
||||||
char *arg, **argvp = argvb;
|
char **argvp = argvb;
|
||||||
|
|
||||||
int n;
|
int n;
|
||||||
size_t nread = 0;
|
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)) *
|
(char **)malloc(sizeof(*(procargs->data)) *
|
||||||
procargs->size);
|
procargs->size);
|
||||||
|
|
||||||
arg = buffer;
|
|
||||||
|
|
||||||
for (n = 0; n < pinfo->pr_argc; n++) {
|
for (n = 0; n < pinfo->pr_argc; n++) {
|
||||||
int alen;
|
int alen;
|
||||||
char *arg;
|
char *arg;
|
||||||
|
|
Loading…
Reference in New Issue