[glib/glib-2-22] Set result_uncertain in win32 g_content_type_guess implementation



commit e9f6a664bb0fbd23e7f9596c96444efba1c280d8
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Feb 15 10:13:10 2010 +0100

    Set result_uncertain in win32 g_content_type_guess implementation
    
    Fixes bug #609143
    (cherry picked from commit b37da7134b127e6c92e7002150077515dc7d42b4)

 gio/gcontenttype.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c
index 51f6653..925b0a4 100644
--- a/gio/gcontenttype.c
+++ b/gio/gcontenttype.c
@@ -327,6 +327,9 @@ g_content_type_guess (const char   *filename,
 
   type = NULL;
 
+  if (result_uncertain)
+    *result_uncertain = FALSE;
+
   if (filename)
     {
       basename = g_path_get_basename (filename);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]