X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=blobdiff_plain;f=common-src%2Fpipespawn.c;h=3574acc05cca24b248195a09462bf81f7ed778f4;hp=9e4e90cc1915643d0797e38b10ae3eb81fc70fa2;hb=c6f0a88c567f8536c498f554285aed1f8150da18;hpb=cd0b924f27312d57bd42f6c4fae2b795139e2d0b diff --git a/common-src/pipespawn.c b/common-src/pipespawn.c index 9e4e90c..3574acc 100644 --- a/common-src/pipespawn.c +++ b/common-src/pipespawn.c @@ -81,7 +81,6 @@ pipespawnv_passwd( int * stderrfd, char ** my_argv) { - int argc; pid_t pid; int i, inpipe[2], outpipe[2], errpipe[2], passwdpipe[2]; char number[NUM_STR_SIZE]; @@ -105,12 +104,10 @@ pipespawnv_passwd( memset(outpipe, -1, SIZEOF(outpipe)); memset(errpipe, -1, SIZEOF(errpipe)); memset(passwdpipe, -1, SIZEOF(passwdpipe)); - argc = 0; cmdline = stralloc(prog); for(arg = my_argv; *arg != NULL; arg++) { if (*arg != skip_argument) { - argc++; quoted = quote_string(*arg); cmdline = vstrextend(&cmdline, " ", quoted, NULL); amfree(quoted);