fix: reversed order or arguments in memset()

This commit is contained in:
Stéphane Lesimple
2021-01-15 12:58:56 +01:00
parent 4518992908
commit 901e87dfcd

View File

@@ -167,7 +167,7 @@ static void cleanup(gpointer data)
} }
/* trigger failure if some threads are still accessing this */ /* trigger failure if some threads are still accessing this */
memset(rc, sizeof(read_closure), 0xff); memset(rc, 0xff, sizeof(read_closure));
g_free(rc); g_free(rc);
/* Continue with ecc file creation after read. /* Continue with ecc file creation after read.