Module: xenomai-forge Branch: next Commit: 491864a0d16d84817caaa4a1a66eb4cfbe5d6293 URL: http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=491864a0d16d84817caaa4a1a66eb4cfbe5d6293
Author: Philippe Gerum <[email protected]> Date: Tue Aug 5 21:16:50 2014 +0200 copperplate/registry: fix error propagation --- lib/copperplate/registry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/copperplate/registry.c b/lib/copperplate/registry.c index f37162f..225c1bb 100644 --- a/lib/copperplate/registry.c +++ b/lib/copperplate/registry.c @@ -212,11 +212,11 @@ int registry_add_file(struct fsobj *fsobj, int mode, const char *fmt, ...) dir = basename == path ? "/" : path; hobj = pvhash_search(&p->dirs, dir, strlen(dir)); if (hobj == NULL) { + ret = -ENOENT; fail: pvhash_remove(&p->files, &fsobj->hobj); pvfree(fsobj->path); fsobj->path = NULL; - ret = -ENOENT; goto done; } _______________________________________________ Xenomai-git mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai-git
