Skip to content

Commit

Permalink
Fix some compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Zoltan Fridrich <[email protected]>
  • Loading branch information
ZoltanFridrich committed Mar 6, 2024
1 parent 7756404 commit f17acad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ p11_dl_error (void)
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPSTR)&msg_buf, 0, NULL);

if (msg_buf == NULL);
if (msg_buf == NULL)
return NULL;

result = strdup (msg_buf);
Expand Down
9 changes: 5 additions & 4 deletions p11-kit/rpc-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,10 +789,11 @@ rpc_C_Initialize (CK_X_FUNCTION_LIST *self,
assert (module->vtable->disconnect != NULL);
(module->vtable->disconnect) (module->vtable, reserved);
ret = (module->vtable->connect) (module->vtable, reserved);

module->version = 0;
ret = (module->vtable->authenticate) (module->vtable,
&module->version);
if (ret == CKR_OK) {
module->version = 0;
ret = (module->vtable->authenticate) (module->vtable,
&module->version);
}
}
#endif
}
Expand Down

0 comments on commit f17acad

Please sign in to comment.