summaryrefslogtreecommitdiff
path: root/desktop/unx/source/pagein.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-10-11 10:12:49 +0200
committerDavid Tardon <dtardon@redhat.com>2011-10-11 10:12:49 +0200
commit9317cad2508d344e416a13768029b24800101a4d (patch)
treec2d612b82d4f4c3d7adfdfa41d8ca859f4a51939 /desktop/unx/source/pagein.c
parent01af504ba9b0b79fd0205d5dd81ddac2c1e0c1fd (diff)
WaE: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'desktop/unx/source/pagein.c')
-rwxr-xr-xdesktop/unx/source/pagein.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c
index 90392b790881..1e3f34889474 100755
--- a/desktop/unx/source/pagein.c
+++ b/desktop/unx/source/pagein.c
@@ -108,8 +108,8 @@ int pagein_execute (int argc, char **argv)
if ((argv[i][0] == '@') && ((fp = fopen (argv[i], "r")) == 0))
{
char fullpath[4096];
+ char *path = NULL;
memset(fullpath, 0, sizeof(fullpath));
- char *path;
strncpy (fullpath, argv[i] + 1, 3000);
if (!(path = strrchr (fullpath, '/')))
path = fullpath;