Thanks to Volker for spotting this one!
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Mar 4 03:09:52 CET 2011 on sn-devel-104
int ndx;
int *new_class_list;
char **new_name_list;
+ int default_level;
if (!classname)
return -1;
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)