diff options
author | Hauke Fath <hauke@Espresso.Rhein-Neckar.DE> | 2011-04-13 20:29:22 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2011-04-13 20:29:22 +0200 |
commit | 5764fbe87327d091b369afa857d9113a88355a80 (patch) | |
tree | 233def71fc1dcef3a87c0171564c50bcfaf6b345 | |
parent | 35495b1e7411733274b281644c8d734b5a74b0db (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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); } |