提交 e2b577e5 编写于 作者: B 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
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册