summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangmenglan <[email protected]>2023-12-22 18:36:42 +0800
committerwangmenglan <[email protected]>2023-12-22 18:36:42 +0800
commitdc452792e6886750af698e999c2a059d43d0606d (patch)
tree5930441d9d6d97ea4cf2129b8ce0137d8fe5c843
parentcb33c3d5a10db8cb3dcdb83b9375c7c9bb586f99 (diff)
bugfix: Correct the error in the conditional statement.v4.6.66-20231222
-rw-r--r--service/src/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/src/app.c b/service/src/app.c
index 3d3f537..bd17fa8 100644
--- a/service/src/app.c
+++ b/service/src/app.c
@@ -100,7 +100,7 @@ void * apps_survival_monitor(void * arg)
{
char buf[64];
int n = read(fd, buf, sizeof(buf));
- if (n = 0)
+ if (n == 0)
__deconstruct_app(app_iter);
}
}