OSDN Git Service

Fix bug in app_id_from_name in stubs.cpp.
authorYabin Cui <yabinc@google.com>
Sat, 18 Apr 2015 21:07:41 +0000 (14:07 -0700)
committerYabin Cui <yabinc@google.com>
Sat, 18 Apr 2015 21:10:12 +0000 (14:10 -0700)
It seems that a break statement is missing.

Bug: 19872411
Change-Id: I9362783ab726d01f6eb27418563e716dd95688dc

libc/bionic/stubs.cpp

index c971d1b..b57aeda 100644 (file)
@@ -245,6 +245,7 @@ static id_t app_id_from_name(const char* name, bool is_group) {
         appid = android_ids[n].aid;
         // Move the end pointer to the null terminator.
         end += strlen(android_ids[n].name) + 1;
+        break;
       }
     }
   }