Changeset 3025

Show
Ignore:
Timestamp:
09/26/06 10:31:03 (2 years ago)
Author:
henryk
Message:

Make do { ... } while (...); into while (...) { ... };.
Fixes behaviour with empty files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/pkcs15.c

    r3024 r3025  
    13341334 
    13351335        p = buf; 
    1336         do { 
     1336        while (bufsize && *p != 0x00) { 
    13371337                const u8 *oldp; 
    13381338                size_t obj_len; 
     
    13731373                        goto ret; 
    13741374                } 
    1375         } while (bufsize && *p != 0x00); 
     1375        }; 
    13761376ret: 
    13771377        free(buf);