summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--exif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exif.c b/exif.c
index 0e0c765..bb01453 100644
--- a/exif.c
+++ b/exif.c
@@ -1256,8 +1256,8 @@ static void writeExifTagAndData(int tag,
int denominator;
char* separator = strchr(curElement, '/');
if (separator) {
- int numerator = atoi(curElement);
- int denominator = atoi(separator + 1);
+ numerator = atoi(curElement);
+ denominator = atoi(separator + 1);
} else {
double value = atof(curElement);
ConvertDoubleToSRational(value, &numerator, &denominator);