{
int r = 0;
- dec->conjuge.cpf = strdup(args[1]);
-
+ r += set_string(args[1], &dec->conjuge.cpf);
r += set_llong(args[2], &dec->conjuge.base);
r += set_llong(args[3], &dec->conjuge.imposto);
r += set_llong(args[4], &dec->conjuge.isento);
r += set_llong(args[5], &dec->conjuge.exclusivo);
r += set_llong(args[6], &dec->conjuge.rendpj_exigibilidade_suspensa);
r += set_llong(args[7], &dec->conjuge.total);
- r += set_int(args + 7, 2, &dec->conjuge.entregou);
+ r += set_int(args[8], &dec->conjuge.entregou);
- if (!dec->conjuge.cpf) {
- conjuge_free(dec);
- return -ENOMEM;
- }
if (r < 0 || dec->conjuge.base < 0 || dec->conjuge.imposto < 0 ||
dec->conjuge.isento < 0 || dec->conjuge.exclusivo < 0 ||
dec->conjuge.rendpj_exigibilidade_suspensa < 0 ||