aboutsummaryrefslogtreecommitdiff
path: root/src/common/backtrace.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-12-18 12:45:51 +0100
committerNick Mathewson <nickm@torproject.org>2015-12-18 13:09:05 -0500
commit59e5bf7e2af1664f1fd019364b61b20b6e93753b (patch)
tree0285d388cdd3074a0495b9b7ba5ff15c8243a288 /src/common/backtrace.c
parent4c55ccbe95a8a1c68d6f9fefb9c5035f2566a478 (diff)
downloadtor-59e5bf7e2af1664f1fd019364b61b20b6e93753b.tar.gz
tor-59e5bf7e2af1664f1fd019364b61b20b6e93753b.zip
Remove an extra space in backtrace version string
Diffstat (limited to 'src/common/backtrace.c')
-rw-r--r--src/common/backtrace.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/backtrace.c b/src/common/backtrace.c
index bed0442471..94de1eb5ee 100644
--- a/src/common/backtrace.c
+++ b/src/common/backtrace.c
@@ -215,9 +215,10 @@ int
configure_backtrace_handler(const char *tor_version)
{
tor_free(bt_version);
- if (!tor_version)
- tor_version = "";
- tor_asprintf(&bt_version, "Tor %s", tor_version);
+ if (tor_version)
+ tor_asprintf(&bt_version, "Tor %s", tor_version);
+ else
+ tor_asprintf(&bt_version, "Tor");
return install_bt_handler();
}