summaryrefslogtreecommitdiff
path: root/gdb/fork-child.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2017-02-20 08:01:04 -0500
committerSergio Durigan Junior <sergiodj@redhat.com>2017-02-20 08:03:13 -0500
commit1b076f2540e51055a7c6a4ee8fdfc604b54fb70a (patch)
treed98dee77c34b58ae09f169221ebdfd293e03e3b1 /gdb/fork-child.c
parent9c7e3b0e6b5234c39d1269fdf1a1413e2a734a79 (diff)
downloadbinutils-gdb-1b076f2540e51055a7c6a4ee8fdfc604b54fb70a.tar.gz
Fix thinko on last commit
On fork-child.c:trace_start_error, va_end should refer to 'ap', not 'args. This fixes it. Sorry about the breakage. gdb/ChangeLog: 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com> PR gdb/16188 * fork-child.c (trace_start_error): Fix thinko. va_end should refer to 'ap', not 'args'.
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r--gdb/fork-child.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index f6256fb01ad..dc2a314edf0 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -120,7 +120,7 @@ trace_start_error (const char *fmt, ...)
fprintf_unfiltered (gdb_stderr, "Could not trace the inferior "
"process.\nError: ");
vfprintf_unfiltered (gdb_stderr, fmt, ap);
- va_end (args);
+ va_end (ap);
gdb_flush (gdb_stderr);
_exit (0177);