diff options
author | Austin Clements <austin@google.com> | 2014-11-04 09:43:37 -0500 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2014-11-04 09:43:37 -0500 |
commit | 44ac5f9624eb5d83e576cdcebf6e8f542bebaf37 (patch) | |
tree | 784b3b7dafd2c23aed90239e30bf13be436d63d1 /test/sinit.go | |
parent | 3ad646b1c04ba64796abf1aab9f9af1bee6e6719 (diff) | |
download | go-44ac5f9624eb5d83e576cdcebf6e8f542bebaf37.tar.gz |
gc: abort if given an unknown debug (-d) flag
The check for unknown command line debug flags in gc was
incorrect: the loop over debugtab terminates when it reaches a
nil entry, but it was only reporting an error if the parser
had passed the last entry of debugtab (which it never did).
Fix this by reporting the usage error if the loop reaches a
nil entry.
LGTM=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/166110043
Diffstat (limited to 'test/sinit.go')
0 files changed, 0 insertions, 0 deletions