X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Frfc2047.c;h=041a18858768ace59de0f89b6c38c433ffe8fbdd;hb=1b7cf216d933b395dee691f05becca4dd44b26f7;hp=5c987e292f2f53f50bc8e06015eac4e9a73631d3;hpb=c2f669a4994192344613569e198c7b503d46d45e;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/rfc2047.c b/src/src/rfc2047.c index 5c987e292..041a18858 100644 --- a/src/src/rfc2047.c +++ b/src/src/rfc2047.c @@ -50,7 +50,7 @@ ptr = *ptrptr = store_get(Ustrlen(string) + 1); /* No longer than this */ while (*string != 0) { - register int ch = *string++; + int ch = *string++; if (ch == '_') *ptr++ = ' '; else if (ch == '=') @@ -197,9 +197,9 @@ uschar *mimeword, *q1, *q2, *endword; *error = NULL; mimeword = decode_mimeword(string, lencheck, &q1, &q2, &endword, &dlen, &dptr); -if (mimeword == NULL) +if (!mimeword) { - if (lenptr != NULL) *lenptr = size; + if (lenptr) *lenptr = size; return string; } @@ -210,7 +210,7 @@ string building code. */ yield = store_get(++size); -while (mimeword != NULL) +while (mimeword) { #if HAVE_ICONV @@ -317,7 +317,7 @@ while (mimeword != NULL) string = endword + 2; mimeword = decode_mimeword(string, lencheck, &q1, &q2, &endword, &dlen, &dptr); - if (mimeword != NULL) + if (mimeword) { uschar *s = string; while (isspace(*s)) s++; @@ -330,8 +330,8 @@ the length as well if requested. */ yield = string_cat(yield, &size, &ptr, string); yield[ptr] = 0; -if (lenptr != NULL) *lenptr = ptr; -if (sizeptr != NULL) *sizeptr = size; +if (lenptr) *lenptr = ptr; +if (sizeptr) *sizeptr = size; return yield; }