summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/eventlogadm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/eventlogadm.c b/source3/utils/eventlogadm.c
index c699f96be7..1b38a7b13b 100644
--- a/source3/utils/eventlogadm.c
+++ b/source3/utils/eventlogadm.c
@@ -68,7 +68,7 @@ static int DoAddSourceCommand( int argc, char **argv, bool debugflag, char *exen
return -1;
}
/* must open the registry before we access it */
- if ( !regdb_init( ) ) {
+ if (!W_ERROR_IS_OK(regdb_init())) {
printf( "Can't open the registry.\n" );
return -1;
}