diff options
-rw-r--r-- | pluma/pluma-document.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pluma/pluma-document.c b/pluma/pluma-document.c index b9519b25..11a5dc65 100644 --- a/pluma/pluma-document.c +++ b/pluma/pluma-document.c @@ -659,6 +659,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"); |