Can't print a NULL on non-GNU systems.
CVS patchset: 3599 CVS date: 2000/02/29 01:57:37
This commit is contained in:
parent
39d03aa29e
commit
968b07939a
|
@ -107,7 +107,7 @@ int doScript(Spec spec, int what, const char *name, StringBuf sb, int test)
|
|||
}
|
||||
|
||||
if (makeTempFile(rootURL, &scriptName, &fd) || fd == NULL || Ferror(fd)) {
|
||||
rpmError(RPMERR_SCRIPT, _("Unable to open temp file %s."), scriptName);
|
||||
rpmError(RPMERR_SCRIPT, _("Unable to open temp file."));
|
||||
rc = RPMERR_SCRIPT;
|
||||
goto exit;
|
||||
}
|
||||
|
|
|
@ -309,7 +309,7 @@ int writeRPM(Header h, const char *fileName, int type,
|
|||
|
||||
/* Write the header */
|
||||
if (makeTempFile(NULL, &sigtarget, &fd)) {
|
||||
rpmError(RPMERR_CREATE, _("Unable to open temp file %s."), sigtarget);
|
||||
rpmError(RPMERR_CREATE, _("Unable to open temp file."));
|
||||
return RPMERR_CREATE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue