Re: [PATCH v5 06/15] block: avoid duplicating filename string in bdrv_create

2022-11-23 Thread Kevin Wolf
Am 23.11.2022 um 12:42 hat Emanuele Giuseppe Esposito geschrieben: > We know that the string will stay around until the function > returns, and the parameter of drv->bdrv_co_create_opts is const char*, > so it must not be modified either. > > Suggested-by: Kevin Wolf > Signed-off-by: Emanuele Giu

[PATCH v5 06/15] block: avoid duplicating filename string in bdrv_create

2022-11-23 Thread Emanuele Giuseppe Esposito
We know that the string will stay around until the function returns, and the parameter of drv->bdrv_co_create_opts is const char*, so it must not be modified either. Suggested-by: Kevin Wolf Signed-off-by: Emanuele Giuseppe Esposito --- block.c | 7 ++- 1 file changed, 2 insertions(+), 5 de