From 8704fb8e8afb02794ed56fce5e4281ee4f942fd2 Mon Sep 17 00:00:00 2001 From: Amit Gandhi Date: Tue, 3 May 2022 11:46:27 -0400 Subject: [PATCH] Bug fix to initialize pid correctly from 2nd shell argument (#17980) --- examples/tv-app/linux/AppPlatformShellCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tv-app/linux/AppPlatformShellCommands.cpp b/examples/tv-app/linux/AppPlatformShellCommands.cpp index 85343e893a750f..50cbc823d74e7d 100644 --- a/examples/tv-app/linux/AppPlatformShellCommands.cpp +++ b/examples/tv-app/linux/AppPlatformShellCommands.cpp @@ -139,7 +139,7 @@ static CHIP_ERROR AppPlatformHandler(int argc, char ** argv) uint16_t pid = 0; if (argc >= 3) { - pid = (uint16_t) strtol(argv[1], &eptr, 10); + pid = (uint16_t) strtol(argv[2], &eptr, 10); } ContentAppPlatform::GetInstance().LoadContentAppByClient(vid, pid);