Initialize EXPR in dtrace-probe::dtrace_process_dof_probe
authorJoel Brobecker <brobecker@adacore.com>
Fri, 27 Mar 2015 13:37:34 +0000 (06:37 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 27 Mar 2015 15:25:28 +0000 (08:25 -0700)
commit79498702ef5f743481ee39c18418776715addcd6
treed5f7042681b37eaa3faba5ef063c076d0c198466
parent0916f9e741d6fd9dab4b0602bef034d01fa71650
Initialize EXPR in dtrace-probe::dtrace_process_dof_probe

GCC 4.4.7 generates the following warning:

 | cc1: warnings being treated as errors
 | dtrace-probe.c: In function ‘dtrace_process_dof_probe’:
 | dtrace-probe.c:416: error: ‘expr’ may be used uninitialized in this function
 | make[2]: *** [dtrace-probe.o] Error 1

Later versions (GCC 5) do a better job and don't generate the warning,
but it does not hurt to pre-initialize "expr" to NULL.

gdb/ChangeLog:

        * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
gdb/ChangeLog
gdb/dtrace-probe.c