Bug 378299

Summary: icalmime.c:182: bad call to memset ?
Product: [Applications] kdepim Reporter: dcb314
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: gjditchfield
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description dcb314 2017-03-31 06:08:58 UTC
icalmime.c:182:27: warning: 'memset' call operates on objects of type 'struct sspm_part' while the size is based on a different type 'struct sspm_part *' [-Wsizeof-pointer-memaccess]

Source code is

    memset(parts,0,sizeof(parts));

Maybe better code

    memset(parts,0,sizeof(*parts));
Comment 1 gjditchfield 2022-05-03 02:52:11 UTC
libical is not a KDE library.  It is maintained at https://github.com/libical/libical.