Skip to content

Commit

Permalink
Fix a warning given by gcc v13 with -fanalyzer option (#381)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien GODARD <[email protected]>
  • Loading branch information
sysstat committed Dec 31, 2023
1 parent f650650 commit dbc0b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr_stats.c
Expand Up @@ -4103,7 +4103,7 @@ __print_funct_t print_fchost_stats(struct activity *a, int prev, int curr,

/* Check if min and max values should be displayed */
if (DISPLAY_MINMAX(flags)) {
int k, pos;
int k = 0, pos;

/* Look for item in list or add it to the list if non existent */
add_list_item(&(a->xdev_list), sfcc->fchost_name, MAX_FCH_LEN, &k);
Expand Down

0 comments on commit dbc0b6a

Please sign in to comment.