Revision cb77d192
b/util/qemu-option.c | ||
---|---|---|
928 | 928 |
get_opt_value(value, sizeof(value), p+4); |
929 | 929 |
id = value; |
930 | 930 |
} |
931 |
|
|
932 |
/* |
|
933 |
* This code doesn't work for defaults && !list->merge_lists: when |
|
934 |
* params has no id=, and list has an element with !opts->id, it |
|
935 |
* appends a new element instead of returning the existing opts. |
|
936 |
* However, we got no use for this case. Guard against possible |
|
937 |
* (if unlikely) future misuse: |
|
938 |
*/ |
|
939 |
assert(!defaults || list->merge_lists); |
|
931 | 940 |
opts = qemu_opts_create(list, id, !defaults, &local_err); |
932 | 941 |
if (opts == NULL) { |
933 | 942 |
if (error_is_set(&local_err)) { |
Also available in: Unified diff