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:
@@ -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];
|
||||||
|
Reference in New Issue
Block a user