Usermode - Fixed scan-build complaints
authorJohn Hodge <[email protected]>
Mon, 22 Jul 2013 12:19:01 +0000 (20:19 +0800)
committerJohn Hodge <[email protected]>
Mon, 22 Jul 2013 12:19:01 +0000 (20:19 +0800)
Usermode/Libraries/libposix.so_src/dirent.c
Usermode/Libraries/liburi.so_src/main.c

index 920020a..e721a4f 100644 (file)
@@ -9,6 +9,7 @@
 #include <stddef.h>    // NULL
 #include <acess/sys.h>
 #include <errno.h>
+#include <stdlib.h>
 
 struct DIR_s
 {
index 93d3b56..ca71940 100644 (file)
@@ -143,7 +143,6 @@ tURI *URI_Parse(const char *String)
                else
                        ret->Path = ret->Host + hostlen + 1;
                
-               pathlen = 0;
                strcpy(ret->Path, tmp);
                
                return ret;

UCC git Repository :: git.ucc.asn.au