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:
phoglund@webrtc.org
2012-09-12 16:36:25 +00:00
parent db81d5b8f6
commit 54d7faa5e3

View File

@@ -36,7 +36,8 @@ int ChoiceBuilder::Choose() {
printf(" Hit enter for default (%s):\n", default_choice_text_.c_str()); printf(" Hit enter for default (%s):\n", default_choice_text_.c_str());
printf("# "); printf("# ");
char input[8]; char input[8];
fgets(input, 8, input_source_); if (!fgets(input, 8, input_source_))
input[0] = '0'; // Make the selection fail
int selection; int selection;
if (input[0] == '\n') if (input[0] == '\n')
selection = default_choice_; selection = default_choice_;