]> diplodocus.org Git - nmh/commitdiff
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 18 Oct 2016 12:37:14 +0000 (13:37 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 18 Oct 2016 12:37:14 +0000 (13:37 +0100)
sbr/readconfig.c

index 1fe9d03..5b72113 100644 (file)
@@ -64,9 +64,9 @@ readconfig (struct node **npp, FILE *ib, const char *file, int ctx)
                NEW(np);
                *npp = np;
                *(npp = &np->n_next) = NULL;
-               np->n_name = getcpy (name);
+               np->n_name = mh_xstrdup(name);
                if (state == FLDPLUS) {
-                   cp = getcpy (field);
+                   cp = mh_xstrdup(field);
                    while (state == FLDPLUS) {
                        fieldsz = sizeof field;
                        state = m_getfld (&gstate, name, field, &fieldsz, ib);