993
993
Do not clear variable value if it has no default value.
994
994
The default value may already be set.
995
NOTE: To avoid compiler warnings, we first cast int64_t to intptr,
995
NOTE: To avoid compiler warnings, we first cast int64_t to intptr_t,
996
996
so that the value has the same size as a pointer.
998
if ((char*) (intptr) value)
999
*((char**) variable)= (char*) (intptr) value;
998
if ((char*) (intptr_t) value)
999
*((char**) variable)= (char*) (intptr_t) value;
1001
1001
case GET_STR_ALLOC:
1003
1003
Do not clear variable value if it has no default value.
1004
1004
The default value may already be set.
1005
NOTE: To avoid compiler warnings, we first cast int64_t to intptr,
1005
NOTE: To avoid compiler warnings, we first cast int64_t to intptr_t,
1006
1006
so that the value has the same size as a pointer.
1008
if ((char*) (intptr) value)
1008
if ((char*) (intptr_t) value)
1010
1010
my_free((*(char**) variable), MYF(MY_ALLOW_ZERO_PTR));
1011
*((char**) variable)= my_strdup((char*) (intptr) value, MYF(MY_WME));
1011
*((char**) variable)= my_strdup((char*) (intptr_t) value, MYF(MY_WME));
1014
1014
default: /* dummy default to avoid compiler warnings */