Commit e55cb42a authored by Baptiste Daroussin's avatar Baptiste Daroussin
Browse files

Do not crash on unsupported ABI

parent 45b5d943
......@@ -847,6 +847,10 @@ pkg_compiled_for_same_os_major(void)
myabi = pkg_object_string(pkg_config_get("ABI"));
myabi = strchr(myabi,':');
if (myabi == NULL) {
pkg_emit_error("Invalid ABI");
return (false);
osmajor = (int) strtol(myabi, NULL, 10);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment