diff options
author | Ricardo Maraschini <ricardo.maraschini@gmail.com> | 2014-01-22 11:03:51 (GMT) |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-07-30 12:48:09 (GMT) |
commit | 15d14d28bb8297342fd7716162a2c8c50705b69d (patch) | |
tree | a3031fbd47e7018c5097d7862cbeffb34cb2bef7 /plugins/tests/certs/server-cert.pem | |
parent | d8c20cc487f4dc361af553c57b8b4f8a4ab1dd29 (diff) | |
download | monitoring-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 'plugins/tests/certs/server-cert.pem')
0 files changed, 0 insertions, 0 deletions