/* -*-c-*-
*
- * $Id: tmpdir.c,v 1.2 1999/05/19 20:37:28 mdw Exp $
+ * $Id: tmpdir.c,v 1.3 1999/05/21 22:07:20 mdw Exp $
*
* Choose and check temporary directories
*
/*----- Revision history --------------------------------------------------*
*
* $Log: tmpdir.c,v $
+ * Revision 1.3 1999/05/21 22:07:20 mdw
+ * Take advantage of new dynamic string macros.
+ *
* Revision 1.2 1999/05/19 20:37:28 mdw
* Track gratuitous change in mdwopt interface.
*
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" };
char *p, *q;
char *qq;
- dstr d;
+ dstr d = DSTR_INIT;
int createflag = 1;
/* --- Make sure the parent directory is sane --- *
/* --- See whether the trivial version will work --- */
- dstr_create(&d);
dstr_putf(&d, "%s/%s", parent, base);
if (ok(d.buf, &createflag))
goto good;