Displaying 2 results from an estimated 2 matches for "802c1d2".
Did you mean:
802.1d
2009 Aug 03
0
[PATCH] guestfs: don't fault upon failed vasprintf
...te: 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;
+
#ifnd...
2009 Aug 03
0
[PATCH] guestfs: fix typo in my recent change
...009 15:39:09 +0200
Subject: [PATCH] guestfs: fix typo in my recent change
* src/guestfs.c (guestfs_perrorf): Rename former err to errnum,
to avoid compilation error.
---
src/guestfs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index 802c1d2..40e702e 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -440,7 +440,7 @@ guestfs_perrorf (guestfs_h *g, const char *fs, ...)
{
va_list args;
char *msg;
- int err = errno;
+ int errnum = errno;
va_start (args, fs);
int err = vasprintf (&msg, fs, args);
@@ -450,11 +450,11 @@ gu...