[SIGAR-11] Initialize log fields in solaris_sigar.c:sigar_os_open
This commit is contained in:
1 parent
03861a2135
commit
a5bd4d351a
3 files changed
+9
-1
No files matched your search
@@ -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++;
|
||||
|
||||
Reference in new issue
Block a user