[DTrace-devel] [PATCH] Fix uninitialized variable warning on older compilers
Eugene Loh
eugene.loh at oracle.com
Tue Nov 28 21:04:58 UTC 2023
Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
A step in the right direction. A bigger step would make more sense to
me, but incremental progress is also fine.
On 11/27/23 22:57, Kris Van Hees via DTrace-devel wrote:
> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
> ---
> libdtrace/dt_conf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libdtrace/dt_conf.c b/libdtrace/dt_conf.c
> index 890198a8..b1fb46a4 100644
> --- a/libdtrace/dt_conf.c
> +++ b/libdtrace/dt_conf.c
> @@ -22,7 +22,7 @@ dt_cpuinfo_read(dtrace_hdl_t *dtp, const char *fn, cpuinfo_t **cip)
> int cnt = 0;
> cpuinfo_t *ci = NULL;
>
> - uint32_t num, start;
> + uint32_t num, start = 0;
> int range = 0;
> char c[2];
>
More information about the DTrace-devel
mailing list