summaryrefslogtreecommitdiffstats
path: root/source/registry/reg_eventlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/registry/reg_eventlog.c')
-rw-r--r--source/registry/reg_eventlog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/registry/reg_eventlog.c b/source/registry/reg_eventlog.c
index ea2b274f88a..1ad80d2b0e9 100644
--- a/source/registry/reg_eventlog.c
+++ b/source/registry/reg_eventlog.c
@@ -190,6 +190,10 @@ BOOL eventlog_add_source( const char *eventlog, const char *sourcename,
int i;
int numsources;
+ if (!elogs) {
+ return False;
+ }
+
for ( i = 0; elogs[i]; i++ ) {
if ( strequal( elogs[i], eventlog ) )
break;