Bug 378299 - icalmime.c:182: bad call to memset ?
Summary: icalmime.c:182: bad call to memset ?
Status: RESOLVED UPSTREAM
Alias: None
Product: kdepim
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-31 06:08 UTC by dcb314
Modified: 2022-05-03 02:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.