2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 13:28:10 +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; ssize_t nwritten;
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME) #if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
setprogname(argc > 0 argv[0] ? "sudoreplay"); setprogname(argc > 0 ? argv[0] : "sudoreplay");
#endif #endif
while ((ch = getopt(argc, argv, "d:lm:s:V")) != -1) { while ((ch = getopt(argc, argv, "d:lm:s:V")) != -1) {

View File

@ -138,7 +138,7 @@ main(int argc, char *argv[])
#endif #endif
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME) #if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
setprogname(argc > 0 argv[0] ? "testsudoers"); setprogname(argc > 0 ? argv[0] : "testsudoers");
#endif #endif
dflag = 0; dflag = 0;

View File

@ -153,7 +153,7 @@ main(int argc, char *argv[])
#endif #endif
#if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME) #if !defined(HAVE_GETPROGNAME) && !defined(HAVE___PROGNAME)
setprogname(argc > 0 argv[0] ? "visudo"); setprogname(argc > 0 ? argv[0] : "visudo");
#endif #endif
if (argc < 1) if (argc < 1)
usage(); usage();