Fix some coverity issues

This commit is contained in:
heckflosse
2017-06-14 17:02:33 +02:00
parent 31d1f2f52b
commit c4f27b2c13
12 changed files with 16 additions and 15 deletions

View File

@@ -180,11 +180,10 @@ CameraConst::parseLevels(CameraConst *cc, int bw, void *ji_)
CameraConst *
CameraConst::parseEntry(void *cJSON_, const char *make_model)
{
CameraConst *cc = nullptr;
cJSON *js, *ji, *jranges;
js = (cJSON *)cJSON_;
cc = new CameraConst;
CameraConst *cc = new CameraConst;
cc->make_model = Glib::ustring(make_model);
ji = cJSON_GetObjectItem(js, "dcraw_matrix");