aboutsummaryrefslogtreecommitdiff
path: root/gdb/fork-child.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-14 19:27:05 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-14 19:27:05 +0000
commitbb9bcb69cdddee8069bf24321f9a0e91ffd22f32 (patch)
treeedad95eb6c25be7325dd34d11bec9dfb5e462ff8 /gdb/fork-child.c
parentd7f9d729727b2b85ae3228785762f4d2e6a8742f (diff)
downloadgdb-bb9bcb69cdddee8069bf24321f9a0e91ffd22f32.zip
gdb-bb9bcb69cdddee8069bf24321f9a0e91ffd22f32.tar.gz
gdb-bb9bcb69cdddee8069bf24321f9a0e91ffd22f32.tar.bz2
2010-05-14 Michael Snyder <msnyder@vmware.com>
* findcmd.c: White space. * findvar.c: White space. * fork-child.c: White space. * frame-base.c: White space. * frame.c: White space. * frame-unwind.c: White space. * f-valprint.c: White space.
Diffstat (limited to 'gdb/fork-child.c')
-rw-r--r--gdb/fork-child.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/fork-child.c b/gdb/fork-child.c
index 98d4935..2b085ff 100644
--- a/gdb/fork-child.c
+++ b/gdb/fork-child.c
@@ -178,6 +178,7 @@ fork_inferior (char *exec_file_arg, char *allargs, char **env,
assuming that every other character is a separate
argument. */
int argc = (strlen (allargs) + 1) / 2 + 2;
+
argv = (char **) xmalloc (argc * sizeof (*argv));
argv[0] = exec_file;
breakup_args (allargs, &argv[1]);