[seed] Fixing some uninitialized buffer
- From: Alan Knowles <alank src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seed] Fixing some uninitialized buffer
- Date: Fri, 15 Jan 2016 06:40:24 +0000 (UTC)
commit ade49dbc60fbecc28285063d4a95f409f241c52c
Author: Danilo Cesar Lemes de Paula <danilo cesar collabora co uk>
Date: Mon Jan 11 13:17:46 2016 -0200
Fixing some uninitialized buffer
libseed/seed-builtins.c | 4 ++--
modules/dbus/module.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libseed/seed-builtins.c b/libseed/seed-builtins.c
index caaacee..6821ba6 100644
--- a/libseed/seed-builtins.c
+++ b/libseed/seed-builtins.c
@@ -38,7 +38,7 @@ seed_include (JSContextRef ctx,
GDir *dir;
gchar *import_file, *abs_path;
- gchar *buffer, *walk;
+ gchar *walk, *buffer = NULL;
guint i, len;
if (argumentCount != 1)
@@ -126,7 +126,7 @@ seed_scoped_include (JSContextRef ctx,
JSStringRef file_contents, file_name;
GDir *dir;
gchar *import_file, *abs_path;
- gchar *buffer, *walk;
+ gchar *walk, *buffer = NULL;
guint i;
if (argumentCount != 1)
diff --git a/modules/dbus/module.c b/modules/dbus/module.c
index b43e111..2e7f3b7 100644
--- a/modules/dbus/module.c
+++ b/modules/dbus/module.c
@@ -872,7 +872,7 @@ seed_js_dbus_call(SeedContext ctx,
DBusMessage *reply;
DBusConnection *bus_connection;
DBusBusType bus_type;
- SeedValue retval;
+ SeedValue retval = NULL;
if (argument_count < 8)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]