Commit e2b577e5 authored by balrog's avatar balrog

Prevent segfaulting when -clock is specified multiple times.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3181 c046a42c-6fe2-441c-8c8c-71466251a162
parent 926acf8f
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment