[gnome-software] trivial: Remove an unneeded 'goto out'
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Remove an unneeded 'goto out'
- Date: Mon, 25 Jan 2016 14:07:12 +0000 (UTC)
commit 5e7ac64c1b40b9364fa2e698a9d5d7343c554531
Author: Kalev Lember <klember redhat com>
Date: Mon Jan 25 14:24:42 2016 +0100
trivial: Remove an unneeded 'goto out'
src/gs-app.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 3bcd9b0..992d01e 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -1051,12 +1051,12 @@ static gchar *
gs_app_get_ui_version (const gchar *version, guint64 flags)
{
guint i;
- gchar *new = NULL;
+ gchar *new;
gchar *f;
/* nothing set */
if (version == NULL)
- goto out;
+ return NULL;
/* first remove any epoch */
for (i = 0; version[i] != '\0'; i++) {
@@ -1095,7 +1095,7 @@ gs_app_get_ui_version (const gchar *version, guint64 flags)
if (f != NULL)
*f= '\0';
}
-out:
+
return new;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]