[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/4] util/envlist: Properly forward a callback's err
From: |
Thomas Schwinge |
Subject: |
[Qemu-devel] [PATCH 1/4] util/envlist: Properly forward a callback's error in envlist_parse. |
Date: |
Thu, 25 Apr 2013 17:06:42 +0200 |
Signed-off-by: Thomas Schwinge <address@hidden>
---
util/envlist.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git util/envlist.c util/envlist.c
index ebc06cf..cbbf7e5 100644
--- util/envlist.c
+++ util/envlist.c
@@ -109,9 +109,10 @@ envlist_parse(envlist_t *envlist, const char *env,
envvar = strtok_r(tmpenv, ",", &envsave);
while (envvar != NULL) {
- if ((*callback)(envlist, envvar) != 0) {
+ int err;
+ if ((err = (*callback)(envlist, envvar)) != 0) {
free(tmpenv);
- return (errno);
+ return (err);
}
envvar = strtok_r(NULL, ",", &envsave);
}
--
1.7.10.4
- [Qemu-devel] Environment variables for user-mode QEMU, Thomas Schwinge, 2013/04/24
- Re: [Qemu-devel] Environment variables for user-mode QEMU, Thomas Schwinge, 2013/04/24
- [Qemu-devel] [PATCH 1/4] util/envlist: Properly forward a callback's error in envlist_parse.,
Thomas Schwinge <=
- [Qemu-devel] [PATCH 2/4] linux-user: Use existing envlist_parse_set/envlist_parse_unset interface., Thomas Schwinge, 2013/04/25
- [Qemu-devel] [PATCH 4/4] linux-user: Restore original behavior of the -E and -U command-line options., Thomas Schwinge, 2013/04/25
- Re: [Qemu-devel] [PATCH 4/4] linux-user: Restore original behavior of the -E and -U command-line options., Peter Maydell, 2013/04/25
- Re: [Qemu-devel] [PATCH 4/4] linux-user: Restore original behavior of the -E and -U command-line options., Thomas Schwinge, 2013/04/25
- Re: [Qemu-devel] [PATCH 4/4] linux-user: Restore original behavior of the -E and -U command-line options., Peter Maydell, 2013/04/25
- [Qemu-devel] [PATCH] qemu-doc: Option -ignore-environment removed., Thomas Schwinge, 2013/04/26
- Re: [Qemu-devel] [PATCH] qemu-doc: Option -ignore-environment removed., Peter Maydell, 2013/04/25
- Re: [Qemu-devel] [PATCH] qemu-doc: Option -ignore-environment removed., Stefan Hajnoczi, 2013/04/26
- [Qemu-devel] [PATCH v2] linux-user: Restore original behavior of the -E and -U command-line options., Thomas Schwinge, 2013/04/26
- [Qemu-devel] [PATCH 3/4] linux-user: Tell handler_arg_* which context they're invoked from., Thomas Schwinge, 2013/04/25