]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Typo
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 Apr 2020 21:46:20 +0000 (16:46 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 Apr 2020 21:46:36 +0000 (16:46 -0500)
src/lib/util/print.c

index cea5162a384032256fd477f90ff8da8728f4f513..80b08bc361df3dcd0c077c688edf5b53fbf794ef 100644 (file)
@@ -194,7 +194,7 @@ char const *fr_utf8_strchr(int *out_chr_len, char const *str, ssize_t inlen, cha
         */
        needle_len = fr_utf8_char((uint8_t const *)chr, end - p);
        if (needle_len == 0) needle_len = 1;    /* Invalid UTF8 sequence - ignore - needle is one byte */
-       if (needle_len) *out_chr_len = needle_len;
+       if (out_chr_len) *out_chr_len = needle_len;
 
        /*
         *      Loop over the input sequence, advancing