gdb/
[binutils-gdb.git] / gdb / inf-ptrace.c
index 82dfc343fc4f789f9e2849ac454190bb60443b38..440f2ed7e7fe110697c01dee5c394056fd876bd3 100644 (file)
@@ -124,7 +124,7 @@ inf_ptrace_create_inferior (struct target_ops *ops,
   /* Do not change either targets above or the same target if already present.
      The reason is the target stack is shared across multiple inferiors.  */
   int ops_already_pushed = target_is_pushed (ops);
-  struct cleanup *back_to;
+  struct cleanup *back_to = NULL;
 
   if (! ops_already_pushed)
     {
@@ -205,7 +205,7 @@ inf_ptrace_attach (struct target_ops *ops, char *args, int from_tty)
   /* Do not change either targets above or the same target if already present.
      The reason is the target stack is shared across multiple inferiors.  */
   int ops_already_pushed = target_is_pushed (ops);
-  struct cleanup *back_to;
+  struct cleanup *back_to = NULL;
 
   pid = parse_pid_to_attach (args);