[gnome-packagekit] Fix a possible crash in the service pack code. Spotted by clang
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Fix a possible crash in the service pack code. Spotted by clang
- Date: Mon, 7 Sep 2009 09:20:24 +0000 (UTC)
commit 876f3d853ff82c9ef7f99e43e66bcac1d667105f
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 7 10:16:32 2009 +0100
Fix a possible crash in the service pack code. Spotted by clang
src/gpk-service-pack.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-service-pack.c b/src/gpk-service-pack.c
index 80d3981..aac829e 100644
--- a/src/gpk-service-pack.c
+++ b/src/gpk-service-pack.c
@@ -215,7 +215,7 @@ gpk_pack_resolve_package_id (const gchar *package)
{
PkPackageList *list = NULL;
gchar *package_id = NULL;
- gchar **packages;
+ gchar **packages = NULL;
GError *error = NULL;
const PkPackageObj *obj;
gboolean ret = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]