]> arthur.barton.de Git - bup.git/blobdiff - src/bup/compat.c
Update base_version to 0.34~ for 0.34 development
[bup.git] / src / bup / compat.c
index a1ae8ee75573aa20849ef1e95bfca598231fca07..98858ae2ee281628f55276b2b4edb1da615e77bf 100644 (file)
@@ -4,7 +4,6 @@
 #undef NDEBUG
 
 // According to Python, its header has to go first:
-//   http://docs.python.org/2/c-api/intro.html#include-files
 //   http://docs.python.org/3/c-api/intro.html#include-files
 #include <Python.h>
 
@@ -15,6 +14,7 @@
 
 int bup_py_bytes_main(int argc, char **argv)
 {
+    assert(argc > 0);
     wchar_t **wargv = PyMem_RawMalloc(argc * sizeof(wchar_t *));
     if (!wargv)
         die(2, "memory insufficient to decode command line arguments");