Avoid memsetting a non-POD struct (fixes compiler warning)

This commit is contained in:
Henrik Rydgård
2026-06-16 11:03:53 +02:00
parent 5ab3d6042b
commit d0dd10ce6b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1784,7 +1784,7 @@ static int sceNetAdhocMatchingCreate(int mode, int maxnum, int port, int rxbufle
getLocalMac(&localmac);
// Clear Memory
memset(context, 0, sizeof(SceNetAdhocMatchingContext));
context = {};
// Allocate Receive Buffer
context->rxbuf = (uint8_t*)malloc(rxbuflen);
+2 -2
View File
@@ -38,7 +38,7 @@ bool TestLoongArch64Emitter(){
cpu_info.LOONGARCH_LBT_MIPS = true;
cpu_info.LOONGARCH_PTW = true;
u32 code[1024];
u32 code[1024]{};
LoongArch64Emitter emitter((u8 *)code, (u8 *)code);
emitter.ADD_W(R12, R13, R14); // t0, t1, t2
@@ -77,4 +77,4 @@ bool TestLoongArch64Emitter(){
}
return true;
}
}