]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Tweak a comment.
authorTim Kientzle <kientzle@acm.org>
Sat, 1 Dec 2012 05:56:32 +0000 (21:56 -0800)
committerTim Kientzle <kientzle@acm.org>
Sat, 1 Dec 2012 05:56:32 +0000 (21:56 -0800)
tar/util.c

index e311094eb7ed53af34b7c6f7d20051c0d6a997dd..ff4cd4fc6f0f789e209ba3910f731df086790ab9 100644 (file)
@@ -147,8 +147,8 @@ safe_fprintf(FILE *f, const char *fmt, ...)
        /* Note: mbrtowc() has a cleaner API, but mbtowc() seems a bit
         * more portable, so we use that here instead. */
        if (mbtowc(NULL, NULL, 1) == -1) { /* Reset the shift state. */
-               /* NOTE: This case may not happen, but it needs to be compiled
-                * safely without warnings by both gcc on linux and clang. */
+               /* mbtowc() should never fail in practice, but
+                * handle the theoretical error anyway. */
                free(fmtbuff_heap);
                return;
        }