>From ae96fbced7349871f53966d532edff2d4ee478ab Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Mon, 27 Sep 2010 16:30:59 +0200
Subject: [PATCH] Preparing to do exactly as FIXME says

However, knowing about those functions is quite a prerequisite.

Signed-off-by: Tamas TEVESZ <[email protected]>
---
 WINGs/findfile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/WINGs/findfile.c b/WINGs/findfile.c
index fa770bc..b5b4348 100644
--- a/WINGs/findfile.c
+++ b/WINGs/findfile.c
@@ -176,8 +176,8 @@ char *wexpandpath(char *path)
 error:
        errno = ENAMETOOLONG;
        werror(_("could not expand %s"), origpath);
-       /* FIXME: too many functions handle a return value of NULL incorrectly 
*/
-       exit(1);
+
+       return NULL;
 }
 
 /* return address of next char != tok or end of string whichever comes first */
-- 
1.7.0.4


-- 
[-]

mkdir /nonexistent
From ae96fbced7349871f53966d532edff2d4ee478ab Mon Sep 17 00:00:00 2001
From: Tamas TEVESZ <[email protected]>
Date: Mon, 27 Sep 2010 16:30:59 +0200
Subject: [PATCH] Preparing to do exactly as FIXME says

However, knowing about those functions is quite a prerequisite.

Signed-off-by: Tamas TEVESZ <[email protected]>
---
 WINGs/findfile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/WINGs/findfile.c b/WINGs/findfile.c
index fa770bc..b5b4348 100644
--- a/WINGs/findfile.c
+++ b/WINGs/findfile.c
@@ -176,8 +176,8 @@ char *wexpandpath(char *path)
 error:
 	errno = ENAMETOOLONG;
 	werror(_("could not expand %s"), origpath);
-	/* FIXME: too many functions handle a return value of NULL incorrectly */
-	exit(1);
+
+	return NULL;
 }
 
 /* return address of next char != tok or end of string whichever comes first */
-- 
1.7.0.4

Reply via email to