Created
May 17, 2015 22:52
-
-
Save LTGIV/e38aaf6ed74b5a5b1383 to your computer and use it in GitHub Desktop.
Patch to fix zbar 0.10 segmentation fault 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- zbar-0.10/imagescanner.c 2009-11-10 04:40:18.000000000 +0700 | |
+++ zbar-0.10_patched/imagescanner.c 2015-05-18 05:44:24.000000000 +0700 | |
@@ -67,7 +67,10 @@ | |
} | |
static PyGetSetDef imagescanner_getset[] = { | |
- { "results", (getter)imagescanner_get_results, }, | |
+ // Instructions for patching: http://thad.getterman.org/post/119228757923/fix-zbar-osx-segmentation-fault-11 | |
+ // Special thanks goes to http://stackoverflow.com/questions/21612908/zbar-python-crashes-on-import-osx-10-9-1 | |
+ { "results", (getter)imagescanner_get_results, NULL, NULL, NULL }, | |
+ { NULL } /* sentinel */ | |
}; | |
static PyObject* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment