Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
ignore_value(pinInfo = virBitmapDataFormat(info[i]->cpumap, info[i]->cpumaplen));
- if (vshTableRowAppend(table, iothreadIdStr, pinInfo ? pinInfo : "", NULL) < 0)
+ if (vshTableRowAppend(table, iothreadIdStr, NULLSTR_EMPTY(pinInfo), NULL) < 0)
goto cleanup;
}
info[i]->mountpoint,
info[i]->name,
info[i]->fstype,
- targets ? targets : "",
+ NULLSTR_EMPTY(targets),
NULL) < 0)
goto cleanup;
}