libmemcached-1.0: fix subscripting on empty vector
[awesomized/libmemcached] / tests / cpp_example.cc
index 0b2037240c00b32398cd52d0fb96b46aa21fe78c..c490ac2d987924fc5ca60cf3d8d6b9b9f4eed20a 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * An example file showing the usage of the C++ libmemcached interface.
  */
+#include <mem_config.h>
 
 #include <vector>
 #include <string>
@@ -190,5 +191,5 @@ int main()
     ++it;
   }
 
-  return 0;
+  return EXIT_SUCCESS;
 }