From c226b7d4beaa9239b8790889aa0a8d3c23eac73c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 7 Oct 2005 01:52:48 +0000 Subject: r10795: Fix code before decl error. Jeremy. (This used to be commit 30bd894ee63e5be266b6069533138ccb3c0fbccb) --- source3/rpc_server/srv_eventlog_lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/rpc_server/srv_eventlog_lib.c b/source3/rpc_server/srv_eventlog_lib.c index a8c1ad51d2..8c7ce4a648 100644 --- a/source3/rpc_server/srv_eventlog_lib.c +++ b/source3/rpc_server/srv_eventlog_lib.c @@ -54,9 +54,10 @@ TDB_CONTEXT *init_eventlog_tdb( char *tdbfilename ) /* make the tdb file name for an event log, given destination buffer and size */ char *mk_tdbfilename( char *dest_buffer, char *eventlog_name, int size_dest ) { + pstring ondisk_name; + if ( !dest_buffer ) return NULL; - pstring ondisk_name; pstrcpy( ondisk_name, "EV" ); pstrcat( ondisk_name, eventlog_name ); -- cgit