Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144389254
D15548.id42913.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
D15548.id42913.diff
View Options
Index: usr.sbin/bhyve/acpi.c
===================================================================
--- usr.sbin/bhyve/acpi.c
+++ usr.sbin/bhyve/acpi.c
@@ -666,7 +666,7 @@
dsdt_line(const char *fmt, ...)
{
va_list ap;
- int err;
+ int err = 0;
if (dsdt_error != 0)
return;
@@ -675,8 +675,10 @@
if (dsdt_indent_level != 0)
EFPRINTF(dsdt_fp, "%*c", dsdt_indent_level * 2, ' ');
va_start(ap, fmt);
- if (vfprintf(dsdt_fp, fmt, ap) < 0)
+ if (vfprintf(dsdt_fp, fmt, ap) < 0) {
+ va_end(ap);
goto err_exit;
+ }
va_end(ap);
}
EFPRINTF(dsdt_fp, "\n");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 4:44 AM (58 m, 57 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28539203
Default Alt Text
D15548.id42913.diff (579 B)
Attached To
Mode
D15548: Fix an uninitialized variable as well as an stdarg cleanup. (CID: 1194318 and 1194332)
Attached
Detach File
Event Timeline
Log In to Comment