]> diplodocus.org Git - nmh/blobdiff - sbr/brkstring.c
sbr/vector.c: Move assert(3)s into bvector_create().
[nmh] / sbr / brkstring.c
index 5375596de68b49e817ae406f809423f61607f385..8b577dbed6ba06561910029d1c26d7f3ffc10442 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * brkstring.c -- (destructively) split a string into
+/* brkstring.c -- (destructively) split a string into
  *             -- an array of substrings
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  *             -- an array of substrings
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
@@ -59,7 +57,7 @@ brkstring (char *str, char *brksep, char *brkterm)
        if (!c || brkany (c, brkterm)) {
            *s = '\0';
            broken[i] = NULL;
        if (!c || brkany (c, brkterm)) {
            *s = '\0';
            broken[i] = NULL;
-           return broken;
+           break;
        }
 
        /* set next start addr */
        }
 
        /* set next start addr */
@@ -69,7 +67,7 @@ brkstring (char *str, char *brksep, char *brkterm)
            ;   /* empty body */
     }
 
            ;   /* empty body */
     }
 
-    return broken;     /* NOT REACHED */
+    return broken;
 }
 
 
 }