]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: make comment more friedly to 'make checkxalloc'
authorKarel Zak <kzak@redhat.com>
Wed, 24 Apr 2019 10:45:20 +0000 (12:45 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 24 Apr 2019 10:45:20 +0000 (12:45 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c

index 86beab99ca780be0b31edc1bc65cad8b64d436c6..caabe23a6285dca32a0154f73d31b46fc57e5138 100644 (file)
@@ -1016,7 +1016,7 @@ static void modify_environment(struct su_context *su, const char *shell)
 
                /* Note that original su(1) has allocated environ[] by malloc
                 * to the number of expected variables. This seems unnecessary
-                * optimization as libc later realloc(current_size+2) and for
+                * optimization as libc later re-alloc(current_size+2) and for
                 * empty environ[] the curren_size is zero. It seems better to
                 * keep all logic around environment in glibc's hands.
                 *                                           --kzak [Aug 2018]