]> git.saurik.com Git - apt.git/blobdiff - methods/rsh.cc
add test for apt show
[apt.git] / methods / rsh.cc
index fb3782314d2152bd4e2378fda6178b04581b2d9b..d76dca6ef35b4be6cca7943865a0e5c142f4e65d 100644 (file)
@@ -218,6 +218,8 @@ bool RSHConn::WriteMsg(std::string &Text,bool Sync,const char *Fmt,...)
    // sprintf the description
    char S[512];
    vsnprintf(S,sizeof(S) - 4,Fmt,args);
+   va_end(args);
+
    if (Sync == true)
       strcat(S," 2> /dev/null || echo\n");
    else