I am solving the errors from top to bottom and one of the last ones is about Conditional jump or move depends on uninitialised value(s). But, it is very confusing. The if statement
checks if an object attribute is equal to an enum. I used the same thing somewhere else in the code without any valgrind error.
Valgrind gives a line number where the uninitialized variable might be located, but no code is written in that line.
The are a few variables around the line all of which are initialized.
The object attribute and the object are also initialized. The get function returns the value of the attribute, then I am checking if the returned value of the get function is equal to an enum.