X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=clients%2Fmemcp.c;h=cf06a573bed5d20d4d9901d787b8d502dbdb5040;hb=f47a36c604ce6bb5065944a71645750c228ccf88;hp=780514c1bc56b7bf7daac5878f85cd8449a9af5f;hpb=34a8c3858f30b02568c87f56a827f618aba6d6be;p=awesomized%2Flibmemcached diff --git a/clients/memcp.c b/clients/memcp.c index 780514c1..cf06a573 100644 --- a/clients/memcp.c +++ b/clients/memcp.c @@ -10,7 +10,6 @@ #include #include #include -#include #include @@ -106,7 +105,12 @@ int main(int argc, char *argv[]) fprintf(stderr, "read: %s\n", strerror(errno)); exit(1); } - assert(read_length == sbuf.st_size); + + if (read_length != sbuf.st_size) + { + fprintf(stderr, "Failure reading from file\n"); + exit(1); + } if (opt_method == OPT_ADD) rc= memcached_add(memc, ptr, strlen(ptr),