diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2014-10-11 17:15:03 +0000 |
|---|---|---|
| committer | Johan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl> | 2014-10-11 17:15:03 +0000 |
| commit | a38add027810b9725f81cebb099282a8656e3aa3 (patch) | |
| tree | 8812da03a3a0227bc0ec213868eca39dbc96593b /src/document.cpp | |
| parent | Fix "Argument with 'nonnull' attribute passed null" API bug in extension colo... (diff) | |
| download | inkscape-a38add027810b9725f81cebb099282a8656e3aa3.tar.gz inkscape-a38add027810b9725f81cebb099282a8656e3aa3.zip | |
Fix uninitialized variable use in svg-color.cpp. (additionally reduce scope of variable)
Bug found using clang static analyzer.
The bug happens with color_out not being initialized upon definition; then
1. if(icc) == true
2. if(prof) == true
3. if(trans) == false
4. *r = color_out[0]; <-- un-init use
Fixed by initializing color_out (with black).
(bzr r13588)
Diffstat (limited to 'src/document.cpp')
0 files changed, 0 insertions, 0 deletions
