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:
jbj 2000-02-29 01:57:37 +00:00
parent 39d03aa29e
commit 968b07939a
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}