gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11607: Return 0 when bad() from ::r


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11607: Return 0 when bad() from ::readNonBlocking (there's no point in returning -1!)
Date: Fri, 06 Nov 2009 14:12:39 +0100
User-agent: Bazaar (1.16.1)

------------------------------------------------------------
revno: 11607
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Fri 2009-11-06 14:12:39 +0100
message:
  Return 0 when bad() from ::readNonBlocking (there's no point in returning -1!)
modified:
  libbase/curl_adapter.cpp
=== modified file 'libbase/curl_adapter.cpp'
--- a/libbase/curl_adapter.cpp  2009-05-04 20:07:52 +0000
+++ b/libbase/curl_adapter.cpp  2009-11-06 13:12:39 +0000
@@ -1095,7 +1095,7 @@
                // I guess an exception would be thrown in this case ?
                log_error("curl adaptor's fillCacheNonBlocking set _error "
                 "rather then throwing an exception");
-               return -1; 
+               return 0; 
        }
 
     std::streamsize actuallyRead = std::fread(dst, 1, bytes, _cache);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]