summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-24 19:29:53 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-24 19:29:53 +0000
commit0cb6656a50b2e99f7f3fb63345e0c707f5427f6e (patch)
tree084d05b555cdf33320489c198e105af03432363d
parentb31c0ab63c7fc08164da351d66b67351005a8690 (diff)
downloadzabbix-0cb6656a50b2e99f7f3fb63345e0c707f5427f6e.tar.gz
zabbix-0cb6656a50b2e99f7f3fb63345e0c707f5427f6e.tar.xz
zabbix-0cb6656a50b2e99f7f3fb63345e0c707f5427f6e.zip
- fixed compilation of ZABBIX agent under Mac OS/X (Alexei)
[svn merge -r4661:4664 svn://svn.zabbix.com/branches/1.4] git-svn-id: svn://svn.zabbix.com/trunk@4665 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r--ChangeLog1
-rw-r--r--src/libs/zbxsysinfo/osx/cpu.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 55eb6c69..0adc1f8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@ Changes for 1.5:
Changes for 1.4.3:
+ - fixed compilation of ZABBIX agent under Mac OS/X (Alexei)
- fixed memory leak when processing non-existant trapper item (Alexei)
- fixed unefficient SQL in browsing of events (Alexei)
- fixed iregexp() (Alexei)
diff --git a/src/libs/zbxsysinfo/osx/cpu.c b/src/libs/zbxsysinfo/osx/cpu.c
index 61012d37..9d14a78a 100644
--- a/src/libs/zbxsysinfo/osx/cpu.c
+++ b/src/libs/zbxsysinfo/osx/cpu.c
@@ -46,7 +46,7 @@ int SYSTEM_CPU_UTIL(const char *cmd, const char *param, unsigned flags, AGENT_RE
if(get_param(param, 1, cpuname, sizeof(cpuname)) != 0)
{
- cpuname[0] == '\0'
+ cpuname[0] = '\0';
}
if(cpuname[0] == '\0')