Reacted on warning of cppcheck
This commit is contained in:
parent
3433592f69
commit
22fed6bedb
@ -1,3 +1,8 @@
|
|||||||
|
bzr branch lp:libisofs/for-libisoburn (to become libisofs-1.1.8.tar.gz)
|
||||||
|
===============================================================================
|
||||||
|
- no novelties yet
|
||||||
|
|
||||||
|
|
||||||
libisofs-1.1.6.tar.gz Tue Sep 27 2011
|
libisofs-1.1.6.tar.gz Tue Sep 27 2011
|
||||||
===============================================================================
|
===============================================================================
|
||||||
* Bug fix: On Solaris: False out-of-memory errors when writing images.
|
* Bug fix: On Solaris: False out-of-memory errors when writing images.
|
||||||
|
@ -95,8 +95,8 @@ size_t aaip_encode(size_t num_attrs, char **names,
|
|||||||
size_t *value_lengths, char **values,
|
size_t *value_lengths, char **values,
|
||||||
size_t *result_len, unsigned char **result, int flag)
|
size_t *result_len, unsigned char **result, int flag)
|
||||||
{
|
{
|
||||||
size_t mem_size= 0, comp_size;
|
size_t mem_size= 0, comp_size, ret;
|
||||||
unsigned int number_of_fields, i, num_recs, ret;
|
unsigned int number_of_fields, i, num_recs;
|
||||||
|
|
||||||
/* Predict memory needs, number of SUSP fields and component records */
|
/* Predict memory needs, number of SUSP fields and component records */
|
||||||
*result_len= 0;
|
*result_len= 0;
|
||||||
@ -158,9 +158,9 @@ size_t aaip_encode(size_t num_attrs, char **names,
|
|||||||
ret= 0;
|
ret= 0;
|
||||||
for(i= 0; i < *result_len; i+= ((unsigned char *) (*result))[i + 2])
|
for(i= 0; i < *result_len; i+= ((unsigned char *) (*result))[i + 2])
|
||||||
ret++;
|
ret++;
|
||||||
if(ret != number_of_fields) {
|
if(ret != (int) number_of_fields) {
|
||||||
fprintf(stderr, "aaip_encode(): WRONG NUMBER OF FIELDS %d <> %d\n",
|
fprintf(stderr, "aaip_encode(): WRONG NUMBER OF FIELDS %d <> %d\n",
|
||||||
number_of_fields, ret);
|
(int) number_of_fields, ret);
|
||||||
}
|
}
|
||||||
#endif /* Aaip_encode_debuG */
|
#endif /* Aaip_encode_debuG */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user