summaryrefslogtreecommitdiffstats
path: root/lib/utils_base.h
diff options
context:
space:
mode:
authorRicardo Maraschini <ricardo.maraschini@gmail.com>2014-01-22 11:03:51 (GMT)
committerJan Wagner <waja@cyconet.org>2014-07-30 12:48:09 (GMT)
commit15d14d28bb8297342fd7716162a2c8c50705b69d (patch)
treea3031fbd47e7018c5097d7862cbeffb34cb2bef7 /lib/utils_base.h
parentd8c20cc487f4dc361af553c57b8b4f8a4ab1dd29 (diff)
downloadmonitoring-plugins-15d14d28bb8297342fd7716162a2c8c50705b69d.tar.gz
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 <ricardo.maraschini@gmail.com> --- Closes #1227
Diffstat (limited to 'lib/utils_base.h')
0 files changed, 0 insertions, 0 deletions