Skip to content

Commit 4a01285

Browse files
authored
Merge pull request #1921 from tstellar/clang-fix
Fix -Wint-conversion error building with clang
2 parents 15331db + 46363d7 commit 4a01285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swig/openscap.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ char * sub_callback_wrapper(xccdf_subst_type_t type, const char *id, void *arg)
475475
arglist = Py_BuildValue("isO", type, id, usrdata);
476476
if (!PyCallable_Check(func)) {
477477
PyGILState_Release(state);
478-
return 1;
478+
return NULL;
479479
}
480480
result = PyEval_CallObject(func, arglist);
481481
if (result == NULL) {

0 commit comments

Comments
 (0)