if (ref) *ref = NULL;
+ /*
+ * Set these as default, so that we can set one (or both) separately as flags.
+ */
+ if ((type == FR_TYPE_DATE) || (type == FR_TYPE_TIME_DELTA)) {
+ flags->length = 4;
+ flags->flag_time_res = FR_TIME_RES_SEC;
+ }
+
for (p = name; p && *p != '\0' ; p = next) {
char *key, *value;
flags->subtype = FLAG_LENGTH_UINT16;
} else if ((type == FR_TYPE_DATE) || (type == FR_TYPE_TIME_DELTA)) {
- flags->length = 4;
- flags->flag_time_res = FR_TIME_RES_SEC;
-
/*
* Allow the dictionary to specify the encoding format.
*/