Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177644999
D15548.1794935970.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
579 B
Referenced Files
None
Subscribers
None
D15548.1794935970.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
Tue, Nov 17, 5:19 PM (12 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41803488
Default Alt Text
D15548.1794935970.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