[SIGAR-11] Initialize log fields in solaris_sigar.c:sigar_os_open
This commit is contained in:
parent
03861a2135
commit
a5bd4d351a
|
@ -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>
|
2006-07-15 Doug MacEachern <dougm@hyperic.com>
|
||||||
|
|
||||||
* 1.2 released
|
* 1.2 released
|
||||||
|
|
|
@ -2,5 +2,5 @@ copyright.year=2004-2006
|
||||||
version.major=1
|
version.major=1
|
||||||
version.minor=2
|
version.minor=2
|
||||||
version.maint=0
|
version.maint=0
|
||||||
version.build=0
|
version.build=1
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,10 @@ int sigar_os_open(sigar_t **sig)
|
||||||
sigar = malloc(sizeof(*sigar));
|
sigar = malloc(sizeof(*sigar));
|
||||||
*sig = sigar;
|
*sig = sigar;
|
||||||
|
|
||||||
|
sigar->log_level = -1; /* log nothing by default */
|
||||||
|
sigar->log_impl = NULL;
|
||||||
|
sigar->log_data = NULL;
|
||||||
|
|
||||||
uname(&name);
|
uname(&name);
|
||||||
if ((ptr = strchr(name.release, '.'))) {
|
if ((ptr = strchr(name.release, '.'))) {
|
||||||
ptr++;
|
ptr++;
|
||||||
|
|
Loading…
Reference in New Issue