mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 02:14:24 +00:00
Prevent segfaulting when -clock is specified multiple times.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3181 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
926acf8f73
commit
e2b577e5e5
2
vl.c
2
vl.c
@ -903,7 +903,7 @@ static void configure_alarms(char const *opt)
|
|||||||
while (name) {
|
while (name) {
|
||||||
struct qemu_alarm_timer tmp;
|
struct qemu_alarm_timer tmp;
|
||||||
|
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count && alarm_timers[i].name; i++) {
|
||||||
if (!strcmp(alarm_timers[i].name, name))
|
if (!strcmp(alarm_timers[i].name, name))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user