reachableroots: pass NULL to PySet_New() as it expects a pointer, not an int
authorYuya Nishihara <yuya@tcha.org>
Thu, 13 Aug 2015 17:58:33 +0900
changeset 26015 ed60d2ae1935
parent 26014 a5f62af29517
child 26016 c8d41c9c23c7
reachableroots: pass NULL to PySet_New() as it expects a pointer, not an int
mercurial/parsers.c
--- a/mercurial/parsers.c	Wed Aug 12 17:01:50 2015 -0500
+++ b/mercurial/parsers.c	Thu Aug 13 17:58:33 2015 +0900
@@ -1144,7 +1144,7 @@
 		includepath = 1;
 
 	/* Initialize return set */
-	reachable = PySet_New(0);
+	reachable = PySet_New(NULL);
 	if (reachable == NULL) {
 		PyErr_NoMemory();
 		goto bail;