diff options
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index f0d97fa..277b473 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1015,11 +1015,12 @@ static void child_attach (char *args, int from_tty) { BOOL ok; - DWORD pid = strtoul (args, 0, 0); + DWORD pid; if (!args) error_no_arg ("process-id to attach"); + pid = strtoul (args, 0, 0); ok = DebugActiveProcess (pid); if (!ok) |