New upstream version 21.1.2+dfsg1
This commit is contained in:
parent
baafb6325b
commit
665f64a933
152 changed files with 3957 additions and 356 deletions
|
|
@ -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),
|
||||
§ion->items, &item);
|
||||
} else {
|
||||
config_add_item(§ion->items, &name, &value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue