Also initialize to NULL a few variables that might get
free before being set.
{
char uuidstr[VIR_UUID_STRING_BUFLEN];
char *vmname;
- char *address;
- char *device;
+ char *address = NULL;
+ char *device = NULL;
const char *virt;
virUUIDFormat(vm->def->uuid, uuidstr);
{
char uuidstr[VIR_UUID_STRING_BUFLEN];
char *vmname;
- char *address;
- char *device;
+ char *address = NULL;
+ char *device = NULL;
const char *virt;
virUUIDFormat(vm->def->uuid, uuidstr);
VIR_WARN("OOM while encoding audit message");
goto cleanup;
}
+ break;
default:
VIR_WARN("Unexpected redirdev bus while encoding audit message: %d",
redirdev->bus);