summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Fath <hauke@Espresso.Rhein-Neckar.DE>2011-04-13 20:29:22 +0200
committerTollef Fog Heen <tfheen@err.no>2011-04-13 20:29:22 +0200
commit5764fbe87327d091b369afa857d9113a88355a80 (patch)
tree233def71fc1dcef3a87c0171564c50bcfaf6b345
parent35495b1e7411733274b281644c8d734b5a74b0db (diff)
Fix C99-ism
Old NetBSD versions don't have a C99 compiler, so get rid a C99ism for their benefit.
-rw-r--r--parse.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/parse.c b/parse.c
index 990e20c..4283a8a 100644
--- a/parse.c
+++ b/parse.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2006-2010 Tollef Fog Heen <tfheen@err.no>
+ * Copyright (C) 2006-2011 Tollef Fog Heen <tfheen@err.no>
* Copyright (C) 2001, 2002, 2005-2006 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or
@@ -880,8 +880,10 @@ parse_cflags (Package *pkg, const char *str, const char *path)
pkg->other_cflags = g_slist_prepend (pkg->other_cflags,
g_strdup (arg));
if (strcmp("-idirafter", arg) == 0) {
- tmp = trim_string(argv[++i]);
- char *n = strdup_escape_shell(tmp);
+ char *n;
+
+ tmp = trim_string(argv[++i]);
+ n = strdup_escape_shell(tmp);
pkg->other_cflags = g_slist_prepend(pkg->other_cflags, n);
g_free(tmp);
}