[gvfs/gnome-2-28] Avoid crash when printf function is called with a NULL string. Fixes
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gvfs/gnome-2-28] Avoid crash when printf function is called with a NULL string. Fixes
- Date: Fri, 27 Nov 2009 14:15:53 +0000 (UTC)
commit 7e7149c52d954be4c341857d576aea6e462fa319
Author: Brian Cameron <Brian Cameron sun com>
Date: Fri Oct 9 10:48:58 2009 -0500
Avoid crash when printf function is called with a NULL string. Fixes
bug #580825.
(cherry picked from commit cd99d7d11fef5488cdd1e8b96829459dd2afad15)
daemon/gvfsbackendsmbbrowse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendsmbbrowse.c b/daemon/gvfsbackendsmbbrowse.c
index e4760e6..97d3c99 100644
--- a/daemon/gvfsbackendsmbbrowse.c
+++ b/daemon/gvfsbackendsmbbrowse.c
@@ -1494,7 +1494,7 @@ g_vfs_backend_smb_browse_class_init (GVfsBackendSmbBrowseClass *klass)
}
#endif
- DEBUG ("g_vfs_backend_smb_browse_class_init - default workgroup = '%s'\n", default_workgroup);
+ DEBUG ("g_vfs_backend_smb_browse_class_init - default workgroup = '%s'\n", default_workgroup ? default_workgroup : "NULL");
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]