]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: correct comment in path_normalize
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Fri, 9 Jun 2017 12:30:02 +0000 (15:30 +0300)
committerGitLab <gitlab@git.dovecot.net>
Mon, 12 Jun 2017 12:23:50 +0000 (15:23 +0300)
Don't blame static analyzers for doing their job.

src/lib/path-util.c

index d23d12790b379d0ed8fde0d48d7446191aa582b9..3bcb35fbc1ba879cff56687e85bd1a86354489a1 100644 (file)
@@ -161,7 +161,7 @@ static int path_normalize(const char *path, bool resolve_links,
                                                return -1;
                                        }
                                        if ((size_t)ret < lsize) {
-                                               /* make static analyzers happy */
+                                               /* POSIX doesn't guarantee the presence of a NIL */
                                                npath_link[ret] = '\0';
                                                break;
                                        }