blob: d7b5da3941b946834476686fe5b8b1a2123b5d7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-aa,v 1.5 2005/04/29 22:14:46 rillig Exp $
Needed for ISO C90 compliance.
--- src/gattrib.c.orig Sun Mar 6 00:54:08 2005
+++ src/gattrib.c Tue Apr 12 02:41:21 2005
@@ -205,7 +205,7 @@ void gattrib_main(void *closure, int arg
i = argv_index;
while(argv[i] != NULL) {
- gchar *temp_filename;
+ gchar *temp_filename, *filename;
#ifdef __MINGW32__
if (argv[i][1] == ':' && (argv[i][2] == G_DIR_SEPARATOR ||
argv[i][2] == OTHER_PATH_SEPARATER_CHAR))
@@ -219,7 +219,7 @@ void gattrib_main(void *closure, int arg
temp_filename = g_build_path (G_DIR_SEPARATOR_S, cwd, argv[i], NULL);
}
- gchar *filename = f_normalize_filename(temp_filename);
+ filename = f_normalize_filename(temp_filename);
g_free(temp_filename);
s_log_message("Loading file [%s]\n", filename);
|