commit | 81bc82ca194af8b6eccbbdf043e34e14bde0c34c | [log] [tgz] |
---|---|---|
author | Petr Machata <pmachata@redhat.com> | Sat Oct 27 19:26:44 2012 +0200 |
committer | Petr Machata <pmachata@redhat.com> | Sat Oct 27 19:26:44 2012 +0200 |
tree | 4ae48cdec544a52bad025306a2bdbbd13f1e8e32 | |
parent | fb8502c860af89ffeb4ee962bd98996672cde2aa [diff] [blame] |
In clone_single_bp, don't overwrite error status, instead use it to shortcut
diff --git a/proc.c b/proc.c index d12faef..cc45882 100644 --- a/proc.c +++ b/proc.c
@@ -308,7 +308,10 @@ struct breakpoint *bp = value; struct clone_single_bp_data *data = u; - data->error = 0; + /* Don't bother if there were errors anyway. */ + if (data->error != 0) + return; + struct breakpoint *clone = malloc(sizeof(*clone)); if (clone == NULL || breakpoint_clone(clone, data->new_proc,