mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Don't assign a constant string to a pointer to non-constant character.
This commit is contained in:
parent
42cd35b717
commit
81a256b02e
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user