Rev 5358: fix segfault due to missing "static" - thanks Volker! in http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/

Michael Adam ma at sernet.de
Sun Apr 15 21:31:21 GMT 2007


At http://samba.sernet.de/ma/bzr/SAMBA_3_0-registry.bzr/

------------------------------------------------------------
revno: 5358
revision-id: ma at sernet.de-20070415213118-ba8597bfcc4540b8
parent: ma at sernet.de-20070415212850-d065eec3f15fccc9
committer: Michael Adam <ma at sernet.de>
branch nick: SAMBA_3_0-registry.bzr
timestamp: Sun 2007-04-15 23:31:18 +0200
message:
  fix segfault due to missing "static" - thanks Volker!
modified:
  source/lib/util_reg.c          util_reg.c-20060711181331-c2d45d0e1f4a8648
=== modified file 'source/lib/util_reg.c'
--- a/source/lib/util_reg.c	2007-04-15 21:28:50 +0000
+++ b/source/lib/util_reg.c	2007-04-15 21:31:18 +0000
@@ -2,6 +2,7 @@
  * Unix SMB/CIFS implementation.
  * Registry helper routines
  * Copyright (C) Volker Lendecke 2006
+ * Copyright (C) Michael Adam 2007
  * 
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the Free
@@ -261,7 +262,7 @@
 {
 	BOOL ret = False;
 	int saved_errno = 0;
-	REGISTRY_HOOK smbconf_reg_hook = {KEY_SMBCONF, &smbconf_reg_ops};
+	static REGISTRY_HOOK smbconf_reg_hook = {KEY_SMBCONF, &smbconf_reg_ops};
 
 	DEBUG(10, ("registry_init_regdb called\n"));
 



More information about the samba-cvs mailing list