Ondřej Surý
12f6a44256
Ensure name count stays positive in remove_nodes()
...
This fixes a scan-build false-positive:
rbt_test.c:914:8: warning: Assigned value is garbage or undefined
node %= *names_count;
^ ~~~~~~~~~~~~
1 warning generated.
The remove_nodes() function is always called with correct arguments
(num_names is in <1;*names_count> range), so the modulo by zero cannot
happen, but nevertheless scan-build detects this and it's easy to fix.
2019-11-05 23:07:07 +01:00
..
2019-04-09 14:27:03 +10:00
2018-05-10 00:04:55 -07:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:28 +02:00
2019-07-30 22:22:27 +02:00
2019-11-05 09:53:18 +01:00
2019-10-03 14:21:46 +02:00
2018-11-15 17:49:38 -08:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2016-08-22 09:07:52 -07:00
2018-11-15 17:51:56 -08:00
2019-07-02 12:28:14 -07:00
2019-10-03 14:21:46 +02:00
2018-05-11 14:25:15 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-10-03 14:21:46 +02:00
2019-11-05 23:07:07 +01:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:28 +02:00
2019-07-30 22:22:28 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:28 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00
2019-07-30 22:22:27 +02:00