Skip to content

Commit 1ccf939

Browse files
ceolinfabiobaltieri
authored andcommitted
shell: Use proper flexible array
0 length array is a GNU extension. Use proper C99 flexible array. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent eaaa2e1 commit 1ccf939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/shell/shell_history.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct shell_history_item {
4242
sys_dnode_t dnode;
4343
uint16_t len;
4444
uint16_t padding;
45-
char data[0];
45+
char data[];
4646
};
4747

4848
void z_shell_history_mode_exit(struct shell_history *history)

0 commit comments

Comments
 (0)