diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | tapsets.cxx | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2007-01-23 Frank Ch. Eigler <fche@elastic.org> + + * tapsets.cxx (loc2c_error): Correct vasprintf ignored-rc warning. + 2007-01-22 Martin Hunt <hunt@redhat.com> * translate.cxx (mapvar::exists): Use new _stp_map_exists function. diff --git a/tapsets.cxx b/tapsets.cxx index 5869a318..82903afa 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -1179,9 +1179,11 @@ struct dwflpp static void loc2c_error (void *arg, const char *fmt, ...) { char *msg = NULL; + int rc; va_list ap; va_start (ap, fmt); - vasprintf (&msg, fmt, ap); + rc = vasprintf (&msg, fmt, ap); + if (rc < 0) msg = "?"; va_end (ap); throw semantic_error (msg); } |