Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
tool_formparse: handle file2memory()'s return value correctly
Now, file2memory() returns PARAM_FILE_ERROR when ferror(stdin) would be true; since `PARAM_READ_ERROR != PARAM_OK', the `if(ferror(stdin))' code became unreachable. Also, it's no longer necessary to free and set `data' to NULL in this case.
- Loading branch information