mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 20:33:08 +02:00
glocalfileinfo: Define errsv only if it's used
This commit is contained in:
parent
b30430970a
commit
3e227fb528
@ -1385,7 +1385,10 @@ get_content_type (const char *basename,
|
|||||||
{
|
{
|
||||||
guchar sniff_buffer[4096];
|
guchar sniff_buffer[4096];
|
||||||
gsize sniff_length;
|
gsize sniff_length;
|
||||||
int fd, errsv;
|
#ifdef O_NOATIME
|
||||||
|
int errsv;
|
||||||
|
#endif
|
||||||
|
int fd;
|
||||||
|
|
||||||
sniff_length = _g_unix_content_type_get_sniff_len ();
|
sniff_length = _g_unix_content_type_get_sniff_len ();
|
||||||
if (sniff_length == 0 || sniff_length > 4096)
|
if (sniff_length == 0 || sniff_length > 4096)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user