projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ae88a
)
Bug fix in debug backtrace
author
Colin Clark
<colin.clark@cclark.uk>
Thu, 16 Mar 2023 10:29:45 +0000
(10:29 +0000)
committer
Colin Clark
<colin.clark@cclark.uk>
Thu, 16 Mar 2023 10:29:45 +0000
(10:29 +0000)
src/debug.cc
patch
|
blob
|
history
diff --git
a/src/debug.cc
b/src/debug.cc
index
5fb2ee2
..
0de94c9
100644
(file)
--- a/
src/debug.cc
+++ b/
src/debug.cc
@@
-322,6
+322,10
@@
void log_print_backtrace(const gchar *file, const gchar *function, gint line)
{
function_name = g_strndup(path, g_strstr_len(path, strlen(path), "(") - path);
}
+ else
+ {
+ function_name = g_strdup("");
+ }
log_printf("%s %s", g_strstr_len(path, -1, "at ") + 3, function_name);
g_free(function_name);