summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-15 11:56:50 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-15 11:56:50 +0100
commit95e50540529d5a411880acbb6ee9f743226243a8 (patch)
treeb6734765d9cb793f67c24165f92b728f46dd5c25 /libdiskfs
parentc75adc040ca2767545e9cff51575b2ac1706efcd (diff)
libdiskfs: fix error handling
Found using the Clang Static Analyzer. * libdiskfs/dir-renamed.c (diskfs_rename_dir): Fix error handling.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/dir-renamed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/dir-renamed.c b/libdiskfs/dir-renamed.c
index d73dc282..9b7ec3a6 100644
--- a/libdiskfs/dir-renamed.c
+++ b/libdiskfs/dir-renamed.c
@@ -132,7 +132,7 @@ diskfs_rename_dir (struct node *fdp, struct node *fnp, const char *fromname,
if (tdp->dn_stat.st_nlink == diskfs_link_max - 1)
{
err = EMLINK;
- return EMLINK;
+ goto out;
}
tdp->dn_stat.st_nlink++;
tdp->dn_set_ctime = 1;