]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: Remove dead store in esxUtil_ParseDatastorePath
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 4 May 2011 07:07:41 +0000 (09:07 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 4 May 2011 16:33:14 +0000 (18:33 +0200)
commitd0a8f99c75ec927064713ee70f5779fe36f4eed7
tree9304b446da2db9716113bc0f044dcfa915a54752
parent29e131dec2637fadc253c276a1c1374ad940624e
esx: Remove dead store in esxUtil_ParseDatastorePath

The ++ on preliminaryFileName was a left over from a previous version
of this function that explicitly returned the filename and did a strdup
on preliminaryFileName afterwards.

As the filename isn't returned explicitly anymore remove the preliminary
variable for it and reuse the tmp variable instead.

Reported by Eric Blake, detected by clang.
src/esx/esx_util.c