diff options
author | fche <fche> | 2007-01-23 20:03:21 +0000 |
---|---|---|
committer | fche <fche> | 2007-01-23 20:03:21 +0000 |
commit | 5ce20b7aa2bea2be48147ce55e4bd3e3710a501f (patch) | |
tree | d5d5573ce3794b2963dfc9a8d450a1713881ad7f /tapsets.cxx | |
parent | b0b3ca16eabbd20e7c062b0e49bac666ed199172 (diff) | |
download | systemtap-steved-5ce20b7aa2bea2be48147ce55e4bd3e3710a501f.tar.gz systemtap-steved-5ce20b7aa2bea2be48147ce55e4bd3e3710a501f.tar.xz systemtap-steved-5ce20b7aa2bea2be48147ce55e4bd3e3710a501f.zip |
2007-01-23 Frank Ch. Eigler <fche@elastic.org>
* tapsets.cxx (loc2c_error): Correct vasprintf ignored-rc warning.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |