Skip to content

Commit 0db054a

Browse files
committed
exec_mailer: quiet a PVS Studio false positive
1 parent 2a5ec23 commit 0db054a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/eventlog/eventlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ closefrom_nodebug(int lowfd)
276276
#define MAX_MAILFLAGS 63
277277

278278
sudo_noreturn static void
279-
exec_mailer(int pipein)
279+
exec_mailer(int pipein) // -V1082
280280
{
281281
const struct eventlog_config *evl_conf = eventlog_getconf();
282282
char *last, *mflags, *p, *argv[MAX_MAILFLAGS + 1];
@@ -304,7 +304,7 @@ exec_mailer(int pipein)
304304

305305
/* Build up an argv based on the mailer path and flags */
306306
if ((mflags = strdup(evl_conf->mailerflags)) == NULL) {
307-
syslog(LOG_ERR, _("unable to allocate memory")); // -V618
307+
syslog(LOG_ERR, "%s", _("unable to allocate memory"));
308308
goto bad;
309309
}
310310
argv[0] = sudo_basename(mpath);

0 commit comments

Comments
 (0)