d8646c6 Use a temporary variable to hold bytes-read count

Authored and Committed by Nalin Dahyabhai 10 years ago
    Use a temporary variable to hold bytes-read count
    
    Use a temporary variable to hold the result returned by read() with
    length 1, so that static analysis tools don't mistakenly conclude that
    we don't do anything with the value when we're only explicitly comparing
    it to -1, 0, or 1.
    
        
file modified
+4 -2