mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06: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
1 changed files with 1 additions and 1 deletions
2
vl.c
2
vl.c
|
@ -903,7 +903,7 @@ static void configure_alarms(char const *opt)
|
|||
while (name) {
|
||||
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))
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue