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

Small correction to subject spellcheck patch



Hi everybody,

I submitted a patch a while back to spellcheck subject lines:

http://marc.theaimsgroup.com/?l=mutt-dev&m=114474704613104&w=2

I didn't handle empty subject lines properly, sorry.  Here's a
patch for the patch:

--- compose.c 2006-03-12 18:35:16.000000000 -0500
+++ compose.c 2007-01-09 14:20:59.000000000 -0500
@@ -1185,8 +1185,7 @@
                char spellfile[_POSIX_PATH_MAX];
                size_t subjectlen;
 
-               subjectlen = strlen ( msg->env->subject);
-               if (subjectlen > 0) /* no susbject, no spellcheck */
+               if (msg->env->subject != NULL && (subjectlen = strlen 
(msg->env->subject))> 0)
                {
                        mutt_mktemp (spellfile);