Fixed bug issue #4 (forgotten case of DATE_TIME_ORIGINAL is absent).

This commit is contained in:
Alexander Vdolainen 2023-07-01 18:17:22 +03:00
parent 0caca3fdf5
commit 298e1d13be

View File

@ -208,10 +208,22 @@ int main(int argc, char **argv)
}
break;
case EDT_MODIFY_ED:
fprintf(stdout, "modify\n");
break;
}
} else fprintf(stdout, "%s: No date and time information exists in exif.\n",
fn_name[i]);
} else {
switch(mode) {
case EDT_DISPLAY:
case EDT_MODIFY_FO:
fprintf(stdout, "%s: No time date information found in EXIF.\n",
fn_name[i]);
break;
case EDT_MODIFY_ED:
fprintf(stdout, "modify\n");
break;
}
}
exif_data_unref(ef);
}