Commit 28bf0210 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Fix use of sizeof sizeof(dr) -> sizeof(*dr).

Found by cppcheck static analysis.

Version 4.05. Tagged as 'ADFS-4_05'
parent 88611aec
/* (4.04)
/* (4.05)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 4.04
#define Module_MajorVersion_CMHG 4.05
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 08 Aug 2017
#define Module_Date_CMHG 26 Jun 2018
#define Module_MajorVersion "4.04"
#define Module_Version 404
#define Module_MajorVersion "4.05"
#define Module_Version 405
#define Module_MinorVersion ""
#define Module_Date "08 Aug 2017"
#define Module_Date "26 Jun 2018"
#define Module_ApplicationDate "08-Aug-17"
#define Module_ApplicationDate "26-Jun-18"
#define Module_ComponentName "ADFS"
#define Module_ComponentPath "cddl/RiscOS/Sources/FileSys/ADFS/ADFS"
#define Module_FullVersion "4.04"
#define Module_HelpVersion "4.04 (08 Aug 2017)"
#define Module_LibraryVersionInfo "4:4"
#define Module_FullVersion "4.05"
#define Module_HelpVersion "4.05 (26 Jun 2018)"
#define Module_LibraryVersionInfo "4:5"
......@@ -42,7 +42,7 @@ void drive_attached(uint32_t cpid, uint32_t deviceid, bool packet_device)
if (dr == NULL)
return;
memset(dr, 0, sizeof dr);
memset(dr, 0, sizeof *dr);
dr->drive = -1u;
dr->packet_device = packet_device;
dr->cpid = cpid;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment