OSSP CVS Repository

ossp - Check-in [245]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 245
Date: 2000-Dec-15 14:27:12 (local)
2000-Dec-15 13:27:12 (UTC)
User:simons
Branch:
Comment: Fixed parsing bug.
Tickets:
Inspections:
Files:
ossp-pkg/petidomo/librfc822/decomment.c      1.2 -> 1.3     3 inserted, 3 deleted

ossp-pkg/petidomo/librfc822/decomment.c 1.2 -> 1.3

--- decomment.c  2000/12/16 13:06:12     1.2
+++ decomment.c  2000/12/16 13:27:12     1.3
@@ -1,6 +1,6 @@
 /*
    $Source: /v/ossp/cvs/ossp-pkg/petidomo/librfc822/decomment.c,v $
-   $Revision: 1.2 $
+   $Revision: 1.3 $
 
    Copyright (C) 2000 by CyberSolutions GmbH, Germany.
 
@@ -140,7 +140,7 @@
     assert(source != NULL);
     if (!source || *source == '\0') {
         errno = EINVAL;
-        return NULL;
+        return 0;
     }
 
     /* Allocate buffer. */
@@ -197,7 +197,7 @@
             angel_bracket_count--;
             break;
         }
-        else if (!in_quote && *s == '\\') {
+        else if (*s == '\\') {
             if (s[1] != '\0') {
                 *p++ = *s++;
             }

CVSTrac 2.0.1