Don't assign a constant string to a pointer to non-constant character.

This commit is contained in:
David Young 2019-11-13 12:04:42 -06:00
parent 42cd35b717
commit 81a256b02e

View File

@ -70,7 +70,7 @@ main(void)
hid_t fapl = -1; /* File access property lists */
hid_t gcpl = -1; /* Group creation property list */
char aname[50]; /* Name of attribute */
char *basename="attr"; /* Name prefix for attribute */
const char *basename="attr";/* Name prefix for attribute */
char filename[100]; /* File name */
int i; /* Local index variable */