changeset 26015:ed60d2ae1935

reachableroots: pass NULL to PySet_New() as it expects a pointer, not an int
author Yuya Nishihara <yuya@tcha.org>
date Thu, 13 Aug 2015 17:58:33 +0900
parents a5f62af29517
children c8d41c9c23c7
files mercurial/parsers.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;