diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2024-02-10 10:16:27 +0100 | 
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2024-02-10 10:16:27 +0100 | 
| commit | 0239a4242ad7b0c44f8525b96e9d14a35474a0e0 (patch) | |
| tree | aca02c5a6dfeee269d520555c895e06ea504de5b | |
| parent | 1966b81b4d51998666c81e4618d42c25712f17a1 (diff) | |
| download | liberty-0239a4242ad7b0c44f8525b96e9d14a35474a0e0.tar.gz liberty-0239a4242ad7b0c44f8525b96e9d14a35474a0e0.tar.xz liberty-0239a4242ad7b0c44f8525b96e9d14a35474a0e0.zip  | |
liberty-xdg: fix usage of volatile
| -rw-r--r-- | liberty-xdg.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/liberty-xdg.c b/liberty-xdg.c index 2c95668..9f0b9f8 100644 --- a/liberty-xdg.c +++ b/liberty-xdg.c @@ -462,7 +462,7 @@ icon_theme_open (const char *path)  {  	volatile png_bytep buffer = 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");  	if (!fp)  	{ @@ -535,7 +535,7 @@ fail:  	free (row_pointers);  	png_destroy_read_struct (&pngp, &infop, NULL);  	fclose (fp); -	return (struct icon_theme_icon *) result; +	return result;  }  // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  | 
