

In strdup() checks, there are two checks with the wrong variable name (the one
strdup()ed before).



---

 cur-root/libjio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN libjio.c~strdup_checks libjio.c
--- cur/libjio.c~strdup_checks	2004-04-05 12:32:05.000000000 -0300
+++ cur-root/libjio.c	2004-04-05 12:32:05.000000000 -0300
@@ -112,7 +112,7 @@ static int get_jdir(const char *filename
 	base = basename(baset);
 
 	dirt = strdup(filename);
-	if (baset == NULL)
+	if (dirt == NULL)
 		return 0;
 	dir = dirname(dirt);
 
@@ -136,7 +136,7 @@ static int get_jtfile(const char *filena
 	base = basename(baset);
 
 	dirt = strdup(filename);
-	if (baset == NULL)
+	if (dirt == NULL)
 		return 0;
 	dir = dirname(dirt);
 

_
