[SCM] Samba Shared Repository - branch master updated
Andrew Tridgell
tridge at samba.org
Thu Mar 3 19:10:03 MST 2011
The branch, master has been updated
via 3560db3 debug: fixed a valgrind error
from e63f0df s3-waf: add wildcard commands from main wscript.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 3560db3da3e3b25c98287701dbc6478358457495
Author: Andrew Tridgell <tridge at samba.org>
Date: Fri Mar 4 12:23:16 2011 +1100
debug: fixed a valgrind error
Thanks to Volker for spotting this one!
Autobuild-User: Andrew Tridgell <tridge at samba.org>
Autobuild-Date: Fri Mar 4 03:09:52 CET 2011 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
lib/util/debug.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/util/debug.c b/lib/util/debug.c
index d2f3d92..c7ba19e 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -255,6 +255,7 @@ int debug_add_class(const char *classname)
int ndx;
int *new_class_list;
char **new_name_list;
+ int default_level;
if (!classname)
return -1;
@@ -274,12 +275,14 @@ int debug_add_class(const char *classname)
new_class_list = DEBUGLEVEL_CLASS;
}
+ default_level = DEBUGLEVEL_CLASS[DBGC_ALL];
+
new_class_list = talloc_realloc(NULL, new_class_list, int, ndx + 1);
if (!new_class_list)
return -1;
DEBUGLEVEL_CLASS = new_class_list;
- DEBUGLEVEL_CLASS[ndx] = DEBUGLEVEL_CLASS[DBGC_ALL];
+ DEBUGLEVEL_CLASS[ndx] = default_level;
new_name_list = talloc_realloc(NULL, classname_table, char *, ndx + 1);
if (!new_name_list)
--
Samba Shared Repository
More information about the samba-cvs
mailing list