initializ variable: buffer, Possible Resource leak:fd

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@33 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: f52184d6bd
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2009-12-08 (Tue, 08 Dec 2009)



------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2009-12-08 17:18:45 +00:00
parent 0898e778aa
commit 61e9ef4018
2 changed files with 2 additions and 2 deletions

View File

@@ -492,7 +492,7 @@ unsigned int CWebserverRequest::HandlePostBoundary(std::string boundary, unsigne
// open file for write
int fd = open(upload_filename.c_str(), O_WRONLY|O_CREAT|O_TRUNC);
if (fd<=0)
if (fd<0)
{
aprintf("cannot open file %s: ", upload_filename.c_str());
dperror("");