Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ofp-table: Fix count_common_prefix_run() function.
It appears that an issue existed in the count_common_prefix_run() function from the beginning. This problem came to light while addressing 'Dead assignment' warnings identified by the Clang static analyzer. Instead of updating the extra_prefix_len with the current (next) value, the next value was inadvertently updated with extra_prefix_len. This patch rectifies this behavior. Fixes: 95a5454 ("ofp-print: Abbreviate lists of fields in table features output.") Signed-off-by: Eelco Chaudron <[email protected]> Acked-by: Ilya Maximets <[email protected]> Signed-off-by: Simon Horman <[email protected]>
- Loading branch information