[PATCH 1 of 2] added error handling to PyList_Sort return value
Petr Kodl
petrkodl at gmail.com
Fri Sep 5 06:36:19 CDT 2008
# HG changeset patch
# User Petr Kodl <petrkodl at gmail.com>
# Date 1220614352 14400
# Node ID d377fec6239540cc19eddbbb62b384587afeaf67
# Parent bbfc523b12ff1a813dc0e3b687e76b93985b697e
added error handling to PyList_Sort return value
diff -r bbfc523b12ff -r d377fec62395 mercurial/osutil.c
--- a/mercurial/osutil.c Thu Sep 04 12:11:07 2008 -0400
+++ b/mercurial/osutil.c Fri Sep 05 07:32:32 2008 -0400
@@ -281,7 +281,7 @@
goto error;
}
fh = 0;
- PyList_Sort(list);
+ if(-1==PyList_Sort(list)) goto error;
return list;
}
else
More information about the Mercurial-devel
mailing list