summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/info2html/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/info2html/main.c b/src/info2html/main.c
index 877bd0e9..47308194 100644
--- a/src/info2html/main.c
+++ b/src/info2html/main.c
@@ -44,12 +44,12 @@ static struct poptOption options[] = {
static int
file_exists(const char *fn)
{
+ struct stat sbuf;
+
if (g_file_test(fn, G_FILE_TEST_IS_DIR)) {
return FALSE;
}
- struct stat sbuf;
-
return (stat(fn, &sbuf) == 0);
}