diff options
author | Ian Rogers <[email protected]> | 2024-11-08 16:37:53 -0800 |
---|---|---|
committer | Namhyung Kim <[email protected]> | 2024-11-08 22:46:44 -0800 |
commit | f4db95b68ae68ebaf91d35cc0487ac1cbd04261e (patch) | |
tree | 4638254cec12167fa0b64bac2cc17ac37e42d52f /tools/lib/api | |
parent | 35de42cdfb64af8357b8c531cc2dad28bde5c712 (diff) |
tools api io: Ensure line_len_out is always initialized
Ensure initialization to avoid compiler warnings about potential use
of uninitialized variables.
Signed-off-by: Ian Rogers <[email protected]>
Cc: Ravi Bangoria <[email protected]>
Cc: Yoshihiro Furudera <[email protected]>
Cc: Howard Chu <[email protected]>
Cc: Ze Gao <[email protected]>
Cc: Changbin Du <[email protected]>
Cc: Junhao He <[email protected]>
Cc: Weilin Wang <[email protected]>
Cc: James Clark <[email protected]>
Cc: Oliver Upton <[email protected]>
Cc: Athira Jajeev <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/lib/api')
-rw-r--r-- | tools/lib/api/io.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/api/io.h b/tools/lib/api/io.h index d3eb04d1bc89..1731996b2c32 100644 --- a/tools/lib/api/io.h +++ b/tools/lib/api/io.h @@ -189,6 +189,7 @@ static inline ssize_t io__getdelim(struct io *io, char **line_out, size_t *line_ err_out: free(line); *line_out = NULL; + *line_len_out = 0; return -ENOMEM; } |