Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5987ab35 authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "app_main: silence static analyzer warnings" am: cf188f66

am: 8a4be2a6

Change-Id: Ic7b6e1092261a0e76fc84b213166729ea3451166
parents d7c03572 8a4be2a6
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -235,6 +235,9 @@ int main(int argc, char* const argv[])
    for (i = 0; i < argc; i++) {
    for (i = 0; i < argc; i++) {
        if (known_command == true) {
        if (known_command == true) {
          runtime.addOption(strdup(argv[i]));
          runtime.addOption(strdup(argv[i]));
          // The static analyzer gets upset that we don't ever free the above
          // string. Since the allocation is from main, leaking it doesn't seem
          // problematic. NOLINTNEXTLINE
          ALOGV("app_process main add known option '%s'", argv[i]);
          ALOGV("app_process main add known option '%s'", argv[i]);
          known_command = false;
          known_command = false;
          continue;
          continue;
@@ -258,6 +261,9 @@ int main(int argc, char* const argv[])
        }
        }


        runtime.addOption(strdup(argv[i]));
        runtime.addOption(strdup(argv[i]));
        // The static analyzer gets upset that we don't ever free the above
        // string. Since the allocation is from main, leaking it doesn't seem
        // problematic. NOLINTNEXTLINE
        ALOGV("app_process main add option '%s'", argv[i]);
        ALOGV("app_process main add option '%s'", argv[i]);
    }
    }