]> granicus.if.org Git - neomutt/commitdiff
suppress check_sec errors
authorMichael Elkins <me@mutt.org>
Wed, 15 Sep 2010 17:05:07 +0000 (10:05 -0700)
committerMichael Elkins <me@mutt.org>
Wed, 15 Sep 2010 17:05:07 +0000 (10:05 -0700)
safe_asprintf.c

index 7aad3d4b046b8738666eb3d2b9d4114db727d486..e92efc1bf52a290142dc5190ea7d37f69a2a8600 100644 (file)
@@ -47,7 +47,7 @@ int safe_asprintf (char **strp, const char *fmt, ...)
   if (n == 0)
   {
     /* Mutt convention is to use NULL for 0-length strings */
-    FREE (strp);
+    FREE (strp); /* __FREE_CHECKED__ */
   }
 
   return n;
@@ -70,7 +70,7 @@ int safe_asprintf (char **strp, const char *fmt, ...)
     va_end (ap);
     if (n < 0)
     {
-      FREE (strp);
+      FREE (strp); /* __FREE_CHECKED__ */
       return n;
     }
 
@@ -80,7 +80,7 @@ int safe_asprintf (char **strp, const char *fmt, ...)
        * include the terminal nul char.
        */
       if (n == 0) /* convention is to use NULL for zero-length strings. */
-       FREE (strp);
+       FREE (strp); /* __FREE_CHECKED__ */
       else if (n != rlen - 1)
        safe_realloc (strp, n + 1);
       return n;