Guard against 'current_directory == NULL' on gdb_abspath (PR gdb/23613)
[deliverable/binutils-gdb.git] / gdb / go32-nat.c
index 8c71bd7650fc01322d0d86fb49fa7c411ddca2a6..94972a2f5c281e705ea72a0d5c648c5dc94eb767 100644 (file)
@@ -507,7 +507,8 @@ go32_nat_target::wait (ptid_t ptid, struct target_waitstatus *status,
     }
 
   getcwd (child_cwd, sizeof (child_cwd)); /* in case it has changed */
-  chdir (current_directory);
+  if (current_directory != NULL)
+    chdir (current_directory);
 
   if (a_tss.tss_irqn == 0x21)
     {
This page took 0.023678 seconds and 4 git commands to generate.