Commit 5317c80
committed
Fix incorrect strncmp usage when comparing access method names.
Previously, the third argument to strncmp() was a boolean expression,
which resulted in a -Wmemsize-comparison warning and incorrect behavior.
Since the lengths were already checked to be equal, strcmp() is sufficient
and more appropriate here.1 parent 1286c92 commit 5317c80
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3850 | 3850 | | |
3851 | 3851 | | |
3852 | 3852 | | |
3853 | | - | |
| 3853 | + | |
3854 | 3854 | | |
3855 | 3855 | | |
3856 | 3856 | | |
| |||
0 commit comments