Skip to content

Commit

Permalink
runtime: track_memory_map_demo: parenthesize asmt in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fw-immunant committed Sep 1, 2023
1 parent 669c105 commit 9b0a021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/track_memory_map_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pid_t spawn_with_tracker(char *const *argv) {
/* wait to get hold of the tracee */
int status;
pid_t ret_pid;
while (ret_pid = waitpid(child_pid, &status, 0) == 0) {
while ((ret_pid = waitpid(child_pid, &status, 0)) == 0) {
if (ret_pid < 0) {
perror("waitpid");
return -1;
Expand Down

0 comments on commit 9b0a021

Please sign in to comment.