Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Nov 3, 2023
1 parent 431fe16 commit ed33536
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions img/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,14 +485,16 @@ apc_img_load_next_frame( Handle target, PImgLoadFileInstance fi, HV * profile, c
if (target == NULL_HANDLE) {
HE * he;
HV * hv = newHV();
hv_iterinit( profile);
while (( he = hv_iternext( profile)) != NULL) {
char *key = HeKEY(he);
if ( key && key[0] == 'o' && key[1] == 'n') {
SV ** holder;
holder = hv_fetch( profile, key, HeKLEN(he), 0);
if ( holder == NULL || !SvOK( *holder)) continue;
(void) hv_store( hv, key, HeKLEN(he), newSVsv(*holder), 0);
if ( profile ) {
hv_iterinit( profile);
while (( he = hv_iternext( profile)) != NULL) {
char *key = HeKEY(he);
if ( key && key[0] == 'o' && key[1] == 'n') {
SV ** holder;
holder = hv_fetch( profile, key, HeKLEN(he), 0);
if ( holder == NULL || !SvOK( *holder)) continue;
(void) hv_store( hv, key, HeKLEN(he), newSVsv(*holder), 0);
}
}
}
fi->object = Object_create( className, hv);
Expand Down

0 comments on commit ed33536

Please sign in to comment.