[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8896) scale() uninitialized j

Full_Name: Ethan Schorer
Version: since 2.4
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

In libraries/liblutil/utils.c in the function scale() the code defines "int i,

Then, i gets set in a for loop, but j only gets set if prev->len > 1.

And then, j is used even if it wasn't initialized. Isn't this a bug?

Shouldn't j be set to 0 when defined? Or don't use it?