summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--midtrans.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index a85539d..9ae23d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,8 +7,7 @@ autom4te.cache
autoscan*.log
build
compile
-config.guess
-config.sub
+config.*
configure
configure.scan
depcomp
diff --git a/midtrans.c b/midtrans.c
index da4f03b..003e8e2 100644
--- a/midtrans.c
+++ b/midtrans.c
@@ -99,8 +99,8 @@ void midtrans_status(const char *order_id)
{
static const char *tmpl = "%s%s/status";
char url[strlen(tmpl) - strlen("%s") * 2 + strlen(base_url)
- + (production ? strlen(order_id) : strlen(ORDER_ID)) + 1];
- sprintf(url, tmpl, base_url, production ? order_id : ORDER_ID);
+ + (order_id ? strlen(order_id) : strlen(ORDER_ID)) + 1];
+ sprintf(url, tmpl, base_url, order_id ? order_id : ORDER_ID);
curl_easy_setopt(curl, CURLOPT_URL, url);
request(NULL);