monitoring-plugins/monitoring-plugins — pull request #1278 by waja (2014-07-30 12:52:43+00:00)
Title: lib/utils_base.c: if asprintf fails, string is undefined

if asprintf fails, string content becomes invalid. we need
to check if it ran OK by checking the returned value.

in case of fail, asprintf returns -1, otherwise the number
of writen bytes is returned.

also, on ubuntu 13.10 i've receiving a lot of warnings:

"warning: ignoring return value of ‘asprintf’"

this patches fixes some of them

Signed-off-by: Ricardo Maraschini
---
Closes #1227