search for: 63e24f0

Displaying 1 result from an estimated 1 matches for "63e24f0".

Did you mean: 63124f0
2009 Aug 03
0
[PATCH] guestfs: don't fault upon failed vasprintf
...om> Date: Mon, 3 Aug 2009 08:43:54 -0400 Subject: [PATCH] guestfs: don't fault upon failed vasprintf * src/guestfs.c (guestfs_perrorf): Handle failed vasprintf. --- src/guestfs.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/guestfs.c b/src/guestfs.c index 63e24f0..802c1d2 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -443,9 +443,11 @@ guestfs_perrorf (guestfs_h *g, const char *fs, ...) int err = errno; va_start (args, fs); - vasprintf (&msg, fs, args); + int err = vasprintf (&msg, fs, args); va_end (args); + if (err < 0) return;...