diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2013-07-04 12:20:21 +0200 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2013-07-10 11:07:33 +0200 |
commit | 3ea84b9548aba33cfa253b370bc6fd949a96c781 (patch) | |
tree | b472d651cc4eed26a8a3a5dc3585bead4a95ead6 /tests/libvirtdconftest.c | |
parent | 36844c9112726d5b00121aa1836e40e350001bd1 (diff) | |
download | libvirt-3ea84b9548aba33cfa253b370bc6fd949a96c781.tar.gz |
Adapt to VIR_ALLOC and virAsprintf in tests/*
Diffstat (limited to 'tests/libvirtdconftest.c')
-rw-r--r-- | tests/libvirtdconftest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/libvirtdconftest.c b/tests/libvirtdconftest.c index d45c31a81e..ba61a0fd34 100644 --- a/tests/libvirtdconftest.c +++ b/tests/libvirtdconftest.c @@ -78,10 +78,8 @@ munge_param(const char *datain, strlen(replace) + strlen(eol) + 1; - if (VIR_ALLOC_N(dataout, dataoutlen) < 0) { - virReportOOMError(); + if (VIR_ALLOC_N(dataout, dataoutlen) < 0) return NULL; - } memcpy(dataout, datain, (eq - datain) + 1); memcpy(dataout + (eq - datain) + 1, replace, strlen(replace)); |