X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmqtt.c;h=0b00bab860939ede191e8aa5a278bb7cce8d76f1;hb=2facdd7eef91949c1594f06703afeb6dd87e51cc;hp=4977f6841e72454c46ecbb35f5c995254dd48e3f;hpb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;p=collectd.git diff --git a/src/mqtt.c b/src/mqtt.c index 4977f684..0b00bab8 100644 --- a/src/mqtt.c +++ b/src/mqtt.c @@ -559,7 +559,7 @@ static int mqtt_config_publisher (oconfig_item_t *ci) conf = calloc (1, sizeof (*conf)); if (conf == NULL) { - ERROR ("mqtt plugin: malloc failed."); + ERROR ("mqtt plugin: calloc failed."); return (-1); } conf->publish = 1; @@ -664,7 +664,7 @@ static int mqtt_config_subscriber (oconfig_item_t *ci) conf = calloc (1, sizeof (*conf)); if (conf == NULL) { - ERROR ("mqtt plugin: malloc failed."); + ERROR ("mqtt plugin: calloc failed."); return (-1); } conf->publish = 0;