Kconfig updated + NFS update

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4646 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-04-23 19:55:32 +00:00
parent 6d6976b06e
commit 31640bb6a6
50 changed files with 881 additions and 207 deletions
+7 -2
View File
@@ -161,6 +161,11 @@ static void parse_file(FILE *stream, struct variable_s **list)
if (ptr)
{
parse_line(ptr, &varname, &varval);
if (!varval || strcmp(varval, "n") == 0)
{
continue;
}
if (varname)
{
int varlen = strlen(varname) + 1;
@@ -215,7 +220,7 @@ static void compare_variables(struct variable_s *list1, struct variable_s *list2
while (list1 || list2)
{
if (list1->val)
if (list1 && list1->val)
{
varval1 = list1->val;
}
@@ -224,7 +229,7 @@ static void compare_variables(struct variable_s *list1, struct variable_s *list2
varval1 = "<NULL>";
}
if (list2->val)
if (list2 && list2->val)
{
varval2 = list2->val;
}