diff options
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/serenitas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/serenitas.c b/sql/serenitas.c index 64de484a..a6cfc6d9 100644 --- a/sql/serenitas.c +++ b/sql/serenitas.c @@ -71,7 +71,7 @@ static inline const char* cal_from_currency(const char* curr) { static const char jp_cal[] = "/usr/share/cds/TYO"; if (strcmp(curr, "USD") == 0) { return us_cal; - } else if (strcmp(surr, "JPY") == ) { + } else if (strcmp(curr, "JPY") == 0) { return jp_cal; } else { return default_cal; @@ -238,7 +238,7 @@ Datum upfront_from_level(PG_FUNCTION_ARGS) { uint32 data_length = VARSIZE_ANY_EXHDR(buf); const char *raw_data = VARDATA_ANY(buf); curve = (TCurve*)palloc(512); - get_TCurve(raw_data, data_length, curve) + get_TCurve(raw_data, data_length, curve); } } else { elog(ERROR, "no curve for that date"); |
