Fixed release error.
TBR=mflodman@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/785007 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2760 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -36,7 +36,8 @@ int ChoiceBuilder::Choose() {
|
||||
printf(" Hit enter for default (%s):\n", default_choice_text_.c_str());
|
||||
printf("# ");
|
||||
char input[8];
|
||||
fgets(input, 8, input_source_);
|
||||
if (!fgets(input, 8, input_source_))
|
||||
input[0] = '0'; // Make the selection fail
|
||||
int selection;
|
||||
if (input[0] == '\n')
|
||||
selection = default_choice_;
|
||||
|
Reference in New Issue
Block a user