]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Remove pointless strdup in node suspend code
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Nov 2011 15:22:53 +0000 (15:22 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 30 Nov 2011 10:12:30 +0000 (10:12 +0000)
commit8c60bc169ff2c52b5f3677563c889acf0cb39dc0
tree8d53f3bec922abd22bd657be461a0d7ebff12e1d
parent2fc056c1bae5402c07bfd8dcac89068e151f9a63
Remove pointless strdup in node suspend code

The command name for the suspend action does not need to be
strdup'd. The constant string can be used directly. This
also means the code can be trivially rearranged to make the
switch clearer

* src/util/virnodesuspend.c: Remove strdup of cmdString
src/util/virnodesuspend.c