]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_new.c
Use HasPrefix() instead of strncmp().
[nmh] / sbr / fmt_new.c
index 078831a589e2ec4a7ccc281f2db3b94f17a66251..18f48987fb890fae7a4be8b7268fe62fb5c507a0 100644 (file)
@@ -30,8 +30,7 @@ new_fs (char *form, char *format, char *default_fs)
     struct stat st;
     FILE *fp;
 
-    if (formats)
-       free (formats);
+    mh_xfree(formats);
 
     if (form) {
        if ((fp = fopen (etcpath (form), "r")) == NULL)