[file-roller] use the original name if no alternative is given
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [file-roller] use the original name if no alternative is given
- Date: Mon, 21 Dec 2009 22:22:13 +0000 (UTC)
commit ed16ec0fdbe73e846869f12664b3ae899624d888
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Dec 21 23:10:10 2009 +0100
use the original name if no alternative is given
src/dlg-package-installer.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/dlg-package-installer.c b/src/dlg-package-installer.c
index e9a7471..3f1bf00 100644
--- a/src/dlg-package-installer.c
+++ b/src/dlg-package-installer.c
@@ -119,8 +119,10 @@ get_packages_real_names (char **names)
real_name = g_key_file_get_string (key_file, "Package Matches", names[i], NULL);
if (real_name != NULL)
real_name = g_strstrip (real_name);
- if ((real_name == NULL) || (strncmp (real_name, "", 1) == 0))
+ if ((real_name != NULL) && (strncmp (real_name, "", 1) != 0))
real_names[i] = g_strdup (real_name);
+ else
+ real_names[i] = g_strdup (names[i]);
g_free (real_name);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]