logging: fix default initialization of per-category loglevels
commitcc6313cc697f4c90cf0fc1c5b01cb1871a075f26
authorHarald Welte <laforge@gnumonks.org>
Fri, 26 Mar 2010 14:04:03 +0000 (26 22:04 +0800)
committerHarald Welte <laforge@gnumonks.org>
Fri, 26 Mar 2010 14:04:03 +0000 (26 22:04 +0800)
treeb09646275f390737314c7498a840ad706b7b4a47
parent3ae2758fba1dc9b364238c6e1e7d591b12c3d878
logging: fix default initialization of per-category loglevels

Before this patch, there was a bug in the code caused by a memcpy
from one data structure to another. unfortuantely the data structures
were not the same, so we have to explicitly iterate over the array
and assign the structure members manually.
src/logging.c