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:
balrog 2007-09-17 21:25:20 +00:00
parent 926acf8f73
commit e2b577e5e5

2
vl.c
View File

@ -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;
}