Skip to content

Commit

Permalink
flashmng: set res to 0 by default in makrClean
Browse files Browse the repository at this point in the history
JIRA: RTOS-927
  • Loading branch information
badochov committed Oct 11, 2024
1 parent 3165f3a commit ab24f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nandpart/flashmng.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int flashmng_markClean(const oid_t *oid, const flashsrv_info_t *info, unsigned i
} jffs2_cleanmarker = { 0x1985, 0x2003, 8 };
unsigned int block, n = 0, end = start + size, npages = info->erasesz / info->writesz;
unsigned char *buff;
int err;
int err = 0;

buff = malloc(info->oobsz);
if (buff == NULL) {
Expand Down

0 comments on commit ab24f42

Please sign in to comment.