mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-28 21:07:55 +00:00
Fix typo in ternary operator usage.
This commit is contained in:
parent
9425527982
commit
be3b7d615a
@ -211,7 +211,7 @@ main(int argc, char *argv[])
|
||||
ssize_t nwritten;
|
||||
|
||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||
setprogname(argc > 0 argv[0] ? "sudoreplay");
|
||||
setprogname(argc > 0 ? argv[0] : "sudoreplay");
|
||||
#endif
|
||||
|
||||
while ((ch = getopt(argc, argv, "d:lm:s:V")) != -1) {
|
||||
|
@ -138,7 +138,7 @@ main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||
setprogname(argc > 0 argv[0] ? "testsudoers");
|
||||
setprogname(argc > 0 ? argv[0] : "testsudoers");
|
||||
#endif
|
||||
|
||||
dflag = 0;
|
||||
|
@ -153,7 +153,7 @@ main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
|
||||
setprogname(argc > 0 argv[0] ? "visudo");
|
||||
setprogname(argc > 0 ? argv[0] : "visudo");
|
||||
#endif
|
||||
if (argc < 1)
|
||||
usage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user