summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pluma/pluma-document.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pluma/pluma-document.c b/pluma/pluma-document.c
index 2ae087b3..21a2c68b 100644
--- a/pluma/pluma-document.c
+++ b/pluma/pluma-document.c
@@ -655,6 +655,8 @@ file_with_bom (GFile *file)
gchar bom[3];
gchar *file_path;
+ bom[0] = bom[1] = bom[2] = 0;
+
file_path = g_file_get_path (file);
testfile = fopen (file_path, "r");