Fix uninitialized variables warnings in error case when src file

cannot be opened.  At least one of these is a false positive.
This commit is contained in:
Todd C. Miller
2015-06-23 12:57:47 -06:00
parent d36e46cb6e
commit 2aeeb54f3f

View File

@@ -118,7 +118,8 @@ main(int argc, char *argv[], char *envp[])
static int static int
sesh_sudoedit(int argc, char *argv[]) sesh_sudoedit(int argc, char *argv[])
{ {
int fd_src, fd_dst, i, oflags_dst, post, ret = SESH_ERR_FAILURE; int i, oflags_dst, post, ret = SESH_ERR_FAILURE;
int fd_src = -1, fd_dst = -1;
ssize_t nread, nwritten; ssize_t nread, nwritten;
struct stat sb; struct stat sb;
struct timespec times[2]; struct timespec times[2];