[SIGAR-11] Initialize log fields in solaris_sigar.c:sigar_os_open

This commit is contained in:
Doug MacEachern 2006-07-24 18:14:19 +00:00
parent 03861a2135
commit a5bd4d351a
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-07-24 Doug MacEachern <dougm@hyperic.com>
* [SIGAR-11] Initialize log fields in solaris_sigar.c:sigar_os_open
2006-07-15 Doug MacEachern <dougm@hyperic.com>
* 1.2 released

View File

@ -2,5 +2,5 @@ copyright.year=2004-2006
version.major=1
version.minor=2
version.maint=0
version.build=0
version.build=1

View File

@ -53,6 +53,10 @@ int sigar_os_open(sigar_t **sig)
sigar = malloc(sizeof(*sigar));
*sig = sigar;
sigar->log_level = -1; /* log nothing by default */
sigar->log_impl = NULL;
sigar->log_data = NULL;
uname(&name);
if ((ptr = strchr(name.release, '.'))) {
ptr++;