replace: Fix use of mktemp
authorSimo Sorce <idra@samba.org>
Wed, 25 Apr 2012 22:55:46 +0000 (18:55 -0400)
committerSimo Sorce <idra@samba.org>
Thu, 26 Apr 2012 14:14:24 +0000 (16:14 +0200)
commit1fbc18572543ed3056057df6ec4990278726fbf4
tree59814a3f13d82c2cc1ab8b156564fc3df859d101
parent701fc995b75e392e896edc0c4314d758f7a5bee6
replace: Fix use of mktemp

mktemp always returns the template, so checking for NULL doesn't cactch any
error. Errors are reported by turning the template into an empty string.

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Apr 26 16:14:24 CEST 2012 on sn-devel-104
lib/replace/replace.c