Skip to content

Commit

Permalink
Code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed May 5, 2024
1 parent d028b4f commit 73b49b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AC_PREREQ([2.71])

AC_INIT(
[libevtx],
[20240504],
[20240505],
[[email protected]])

AC_CONFIG_SRCDIR(
Expand Down
11 changes: 2 additions & 9 deletions pyevtx/pyevtx_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ PyMethodDef pyevtx_record_object_methods[] = {
{ "get_event_identifier",
(PyCFunction) pyevtx_record_get_event_identifier,
METH_NOARGS,
"get_event_identifier() -> Integer or None\n"
"get_event_identifier() -> Integer\n"
"\n"
"Retrieves the event identifier." },

Expand Down Expand Up @@ -918,7 +918,7 @@ PyObject *pyevtx_record_get_event_identifier(

Py_END_ALLOW_THREADS

if( result == -1 )
if( result != 1 )
{
pyevtx_error_raise(
error,
Expand All @@ -931,13 +931,6 @@ PyObject *pyevtx_record_get_event_identifier(

return( NULL );
}
else if( result == 0 )
{
Py_IncRef(
Py_None );

return( Py_None );
}
integer_object = PyLong_FromUnsignedLong(
(unsigned long) value_32bit );

Expand Down

0 comments on commit 73b49b7

Please sign in to comment.