diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/nat/linux-namespaces.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c7d2dae..0028253 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2019-08-27 Christian Biesinger <cbiesinger@google.com> + + * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1). + 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com> * cli/cli-utils.c (info_print_options_defs): Delete. diff --git a/gdb/nat/linux-namespaces.c b/gdb/nat/linux-namespaces.c index 503f755..e49bc1a 100644 --- a/gdb/nat/linux-namespaces.c +++ b/gdb/nat/linux-namespaces.c @@ -562,7 +562,7 @@ mnsh_main (int sock) while (1) { enum mnsh_msg_type type; - int fd, int1, int2; + int fd = -1, int1, int2; char buf[PATH_MAX]; ssize_t size, response = -1; |