Changeset 1617
- Timestamp:
- Nov 23, 2009 8:31:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/RpEncode.cc
r1580 r1617 222 222 Rappture::encoding::isGzipped(const char* buf, int size) 223 223 { 224 unsigned int first, second; 224 225 if (buf == NULL) { 225 226 return false; /* Really should let this segfault. */ 226 227 } 227 return (((unsigned int)buf[0] == 0x1f) && ((unsigned int)buf[1] == 0x8b)); 228 first = buf[0]; 229 second = buf[1]; 230 return ((first == 0x1f) && (second == 0x8b)); 228 231 } 229 232
Note: See TracChangeset
for help on using the changeset viewer.