Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in example: UpdateTaskStatus always sets to true because char* cast as bool #9

Open
oschonrock opened this issue Sep 5, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@oschonrock
Copy link

bug in example:

                updateTaskStatus(conn, atoi(argv[2]), argv[3]);

passes a char* as a bool. as a result the task is always set to completed = true.

more correct would be

      updateTaskStatus(conn, atoi(argv[2]), atoi(argv[3])); 
@rhedgpeth rhedgpeth self-assigned this Sep 21, 2021
@rhedgpeth rhedgpeth added the bug Something isn't working label Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants