[tor-commits] [tor/master] Remove an extra space in backtrace version string
nickm at torproject.org
nickm at torproject.org
Fri Dec 18 18:10:19 UTC 2015
commit 59e5bf7e2af1664f1fd019364b61b20b6e93753b
Author: cypherpunks <cypherpunks at torproject.org>
Date: Fri Dec 18 12:45:51 2015 +0100
Remove an extra space in backtrace version string
---
src/common/backtrace.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/common/backtrace.c b/src/common/backtrace.c
index bed0442..94de1eb 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();
}
More information about the tor-commits
mailing list