[kdepim] [Bug 378299] New: icalmime.c:182: bad call to memset ?

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Fri Mar 31 07:08:58 BST 2017


https://bugs.kde.org/show_bug.cgi?id=378299

            Bug ID: 378299
           Summary: icalmime.c:182: bad call to memset ?
           Product: kdepim
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdepim-bugs at kde.org
          Reporter: dcb314 at hotmail.com
  Target Milestone: ---

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));

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list