liberty-xdg: fix usage of volatile

This commit is contained in:
Přemysl Eric Janouch 2024-02-10 10:16:27 +01:00
parent 1966b81b4d
commit 0239a4242a
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -462,7 +462,7 @@ icon_theme_open (const char *path)
{ {
volatile png_bytep buffer = NULL; volatile png_bytep buffer = NULL;
volatile png_bytepp row_pointers = NULL; volatile png_bytepp row_pointers = NULL;
volatile struct icon_theme_icon *result = NULL; struct icon_theme_icon *volatile result = NULL;
FILE *fp = fopen (path, "rb"); FILE *fp = fopen (path, "rb");
if (!fp) if (!fp)
{ {
@ -535,7 +535,7 @@ fail:
free (row_pointers); free (row_pointers);
png_destroy_read_struct (&pngp, &infop, NULL); png_destroy_read_struct (&pngp, &infop, NULL);
fclose (fp); fclose (fp);
return (struct icon_theme_icon *) result; return result;
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -