X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmqtt.c;h=0b00bab860939ede191e8aa5a278bb7cce8d76f1;hb=a8c59c6d75efe3656b2f019ddefb2ce6cb2cbb2e;hp=4977f6841e72454c46ecbb35f5c995254dd48e3f;hpb=b66d5b90a0e59e943a61acb4b68ce55e88f08ade;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;