]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
* libmisc/chowndir.c: Add splint annotations.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 14 Aug 2011 14:00:14 +0000 (14:00 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 14 Aug 2011 14:00:14 +0000 (14:00 +0000)
ChangeLog
libmisc/chowndir.c

index 906fbb31d874b6a6b5539f539d750521637ecf81..769242ca726a4d302fd7e71a3cb15b8bf3a0d872 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-08-14  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * libmisc/chowndir.c: Add splint annotations.
+
 2011-08-14  Nicolas François  <nicolas.francois@centraliens.net>
 
        * lib/gshadow_.h: Fix typo in comment.
index e2469af6ab6caff8ce6e6f763aa85e41546c86cb..c4c504a5ab60e7285a2cc4192dddfaac18571bf7 100644 (file)
@@ -116,7 +116,7 @@ int chown_tree (const char *root,
 
                ent_name_len = strlen (root) + strlen (ent->d_name) + 2;
                if (ent_name_len > new_name_len) {
-                       char *tmp = realloc (new_name, ent_name_len);
+                       /*@only@*/char *tmp = realloc (new_name, ent_name_len);
                        if (NULL == tmp) {
                                rc = -1;
                                break;