]> diplodocus.org Git - nmh/blobdiff - sbr/folder_addmsg.c
Hoist test of search string for NULL out of loop.
[nmh] / sbr / folder_addmsg.c
index c1e836c176b29edbd8a1ba9f62d9ca084dc61949..f6a9af330ed38eba7d91cea486567acd9152b21d 100644 (file)
@@ -134,7 +134,7 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected,
                (void)ext_hook("ref-hook", oldmsg, newmsg);
            }
            else
-               (void)ext_hook("add-hook", newmsg, (char *)0);
+               (void)ext_hook("add-hook", newmsg, NULL);
 
            return msgnum;
        } else {
@@ -191,7 +191,7 @@ folder_addmsg (struct msgs **mpp, char *msgfile, int selected,
                        (void)ext_hook("ref-hook", oldmsg, newmsg);
                    }
                    else
-                       (void)ext_hook("add-hook", newmsg, (char *)0);
+                       (void)ext_hook("add-hook", newmsg, NULL);
 
                    return msgnum;
                }