summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxserver
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-15 11:45:59 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-04-15 11:45:59 +0000
commitd2bc020f9ba35863d298d46200c8349e0f1d4396 (patch)
tree92631bb36bde1bfd5c96e56f413393f0dd7e8c82 /src/libs/zbxserver
parentaacfc8050578ab49b131a8498e1f0b17acfcf22b (diff)
downloadzabbix-d2bc020f9ba35863d298d46200c8349e0f1d4396.tar.gz
zabbix-d2bc020f9ba35863d298d46200c8349e0f1d4396.tar.xz
zabbix-d2bc020f9ba35863d298d46200c8349e0f1d4396.zip
- [ZBX-357] fixed problem with clearing error message for activated items
[svn merge svn://svn.zabbix.com/branches/1.4 -r5623:5625] git-svn-id: svn://svn.zabbix.com/trunk@5626 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxserver')
-rw-r--r--src/libs/zbxserver/functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxserver/functions.c b/src/libs/zbxserver/functions.c
index 273e1ae5..f453a9ca 100644
--- a/src/libs/zbxserver/functions.c
+++ b/src/libs/zbxserver/functions.c
@@ -519,7 +519,7 @@ static void update_item(DB_ITEM *item, AGENT_RESULT *value, time_t now)
item->key,
item->host_name);
item->status = ITEM_STATUS_ACTIVE;
- DBexecute("update items set status=%d where itemid=" ZBX_FS_UI64,
+ DBexecute("update items set status=%d,error='' where itemid=" ZBX_FS_UI64,
ITEM_STATUS_ACTIVE,
item->itemid);
}