commit | 961666278ec6fa9ea2d61b49454bfbfae13c93e5 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Aug 03 07:34:24 2017 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Aug 03 07:34:24 2017 +0000 |
tree | 2de12b812b4833c5dd5e879f3c734ecb9cbecbd9 | |
parent | ca9256d857cdcae985ef8c7e78a1cb89e5d2dd54 [diff] | |
parent | a76de3a030f20f973a136457eb8fa5a7f2824b7f [diff] |
release-request-ca4ad653-1655-436a-b65c-2527b02ae5f2-for-git_oc-mr1-release-4241196 snap-temp-L48200000088705722 Change-Id: I92d7773d0741825a11ea919c863bc861e35ec7ca
diff --git a/android_popt.cc b/android_popt.cc index a1492c6..b5b7970 100644 --- a/android_popt.cc +++ b/android_popt.cc
@@ -98,7 +98,7 @@ #ifdef LOCAL_DEBUG fprintf(stderr, "getopt_long()=%c\n", res); #endif - if (res == 0 || res == '?') { + if (res <= 0 || res == '?' || i == -1) { return -1; }