discomfitor pushed a commit to branch master. http://git.enlightenment.org/tools/clouseau.git/commit/?id=4a9c23648a93b06c8570fca155daed51b16cda89
commit 4a9c23648a93b06c8570fca155daed51b16cda89 Author: discomfitor <michael.blumenkra...@gmail.com> Date: Sun Oct 20 16:52:22 2013 +0100 fix crash from connection errors where address is NULL (don't ask) --- src/bin/clouseau_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/clouseau_client.c b/src/bin/clouseau_client.c index 66c90bf..ade7e3c 100644 --- a/src/bin/clouseau_client.c +++ b/src/bin/clouseau_client.c @@ -108,7 +108,7 @@ _titlebar_string_set(Gui_Elements *g, Eina_Bool online) { if (online) { - char *str = malloc(strlen(CLIENT_NAME) + strlen(g->address) + 32); + char *str = malloc(strlen(CLIENT_NAME) + (g->address ? strlen(g->address) : 0) + 32); sprintf(str, "%s - %s", CLIENT_NAME, g->address); elm_win_title_set(g->win, str); free(str); --