<<< Date Index >>>     <<< Thread Index >>>

[PATCH 3 of 3] Because of the check in the for(), buflen cannot be null



# HG changeset patch
# User Erik Hovland <erik@xxxxxxxxxxx>
# Date 1235084982 28800
# Node ID b3a7642f920ccc14851e337e978ee52266e7495b
# Parent  060ecc0ef231ebb0bb40b0e136b254e9c4265696
Because of the check in the for(), buflen cannot be null.

So the check of buflen in the for loop will never be true
and is therefore not useful.

diff -r 060ecc0ef231 -r b3a7642f920c rfc822.c
--- a/rfc822.c  Thu Feb 19 15:08:49 2009 -0800
+++ b/rfc822.c  Thu Feb 19 15:09:42 2009 -0800
@@ -592,8 +592,6 @@
       {
        if (*pc == '"' || *pc == '\\')
        {
-         if (!buflen)
-           goto done;
          *pbuf++ = '\\';
          buflen--;
        }