]> diplodocus.org Git - nmh/blobdiff - sbr/path.c
seq_bits.c: Move interface to own file.
[nmh] / sbr / path.c
index 28d0e7735d6485fd30d87e95d181147e0ff6e21f..278a101f771364a89a5cae168c176123ff406302 100644 (file)
@@ -5,8 +5,8 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "h/utils.h"
 #include "m_maildir.h"
 
 #define        CWD     "./"
@@ -22,21 +22,22 @@ static char *pwds;
 static char *expath(char *,int);
 static void compath(char *);
 
+
+/* Return value must be free(3)'d. */
 char *
 pluspath(char *name)
 {
        return path(name + 1, *name == '+' ? TFOLDER : TSUBCWF);
 }
 
+
+/* Return value must be free(3)'d. */
 char *
 path(char *name, int flag)
 {
     char *p, *last;
 
     p = expath(name, flag);
-    if (!p)
-        return NULL;
-
     last = p + strlen(p) - 1;
     if (last > p && *last == '/')
        *last = '\0';
@@ -45,6 +46,7 @@ path(char *name, int flag)
 }
 
 
+/* Return value must be free(3)'d. */
 static char *
 expath (char *name, int flag)
 {