2
0
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:
Todd C. Miller 2010-06-01 09:44:54 -04:00
parent 9425527982
commit be3b7d615a
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

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

View File

@ -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();