Skip to content

Commit

Permalink
Merge pull request #64 from nelhage/nelhage-uninit
Browse files Browse the repository at this point in the history
suppress a gcc unitialized-var warning
  • Loading branch information
nelhage committed Sep 22, 2015
2 parents 0926270 + 427eaca commit 15da1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attach.c
Expand Up @@ -498,7 +498,7 @@ int steal_child_pty(struct steal_pty_state *steal) {
// it doesn't die.
int steal_block_hup(struct steal_pty_state *steal) {
struct ptrace_child leader;
child_addr_t scratch;
child_addr_t scratch = 0;
int err = 0;

if ((err = grab_pid(steal->target_stat.sid, &leader, &scratch)))
Expand Down

0 comments on commit 15da1f0

Please sign in to comment.