Skip to content
Snippets Groups Projects
Commit a11342d4 authored by Service qcabuildsw's avatar Service qcabuildsw Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Memset structure values to 0 before sending an IOCTL" into fm.lnx.2.1-dev

parents ca34f87e 7bb0f627
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,9 @@ int FmIoctlsInterface :: set_calibration ...@@ -111,6 +111,9 @@ int FmIoctlsInterface :: set_calibration
struct v4l2_ext_controls v4l2_ctls; struct v4l2_ext_controls v4l2_ctls;
char cal_data[CAL_DATA_SIZE] = {0}; char cal_data[CAL_DATA_SIZE] = {0};
memset(&v4l2_ctls, 0, sizeof(v4l2_ctls));
memset(&ext_ctl, 0, sizeof(ext_ctl));
cal_fp = fopen(CALIB_DATA_NAME, "r"); cal_fp = fopen(CALIB_DATA_NAME, "r");
if(cal_fp != NULL) { if(cal_fp != NULL) {
if(fread(&cal_data[0], 1, CAL_DATA_SIZE, cal_fp) if(fread(&cal_data[0], 1, CAL_DATA_SIZE, cal_fp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment