New upstream version 21.1.2+dfsg1

This commit is contained in:
Sebastian Ramacher 2018-05-29 21:13:02 +02:00
parent baafb6325b
commit 665f64a933
152 changed files with 3957 additions and 356 deletions

View file

@ -212,8 +212,15 @@ static void config_parse_section(struct config_section *section,
strref_clear(&value);
config_parse_string(lex, &value, 0);
if (!strref_is_empty(&value))
if (strref_is_empty(&value)) {
struct config_item item;
item.name = bstrdup_n(name.array, name.len);
item.value = bzalloc(1);
darray_push_back(sizeof(struct config_item),
&section->items, &item);
} else {
config_add_item(&section->items, &name, &value);
}
}
}

View file

@ -37,8 +37,11 @@ static uint32_t winver = 0;
static inline uint64_t get_clockfreq(void)
{
if (!have_clockfreq)
if (!have_clockfreq) {
QueryPerformanceFrequency(&clock_freq);
have_clockfreq = true;
}
return clock_freq.QuadPart;
}