From: Brian Aker Date: Wed, 1 May 2013 06:51:46 +0000 (-0400) Subject: Fix two valgrind finds. X-Git-Tag: 1.0.18~24^2~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=820fcf318e11426bdb72345948c56738b5e12da4;p=m6w6%2Flibmemcached Fix two valgrind finds. --- diff --git a/clients/memcp.cc b/clients/memcp.cc index 7ae5a1f3..f3c31141 100644 --- a/clients/memcp.cc +++ b/clients/memcp.cc @@ -131,7 +131,7 @@ int main(int argc, char *argv[]) } else if (argc >= 1 and argv[--argc]) { - opt_servers= strdup(argv[--argc]); + opt_servers= strdup(argv[argc]); } if (opt_servers == NULL) diff --git a/clients/memdump.cc b/clients/memdump.cc index 5c6fef29..48c35d3e 100644 --- a/clients/memdump.cc +++ b/clients/memdump.cc @@ -72,7 +72,7 @@ int main(int argc, char *argv[]) } else if (argc >= 1 and argv[--argc]) { - opt_servers= strdup(argv[--argc]); + opt_servers= strdup(argv[argc]); } if (opt_servers == NULL)