X-Git-Url: https://git.octo.it/?p=collection4.git;a=blobdiff_plain;f=src%2Fgraph_ident.c;fp=src%2Fgraph_ident.c;h=5c513ec03ca678bce5ff4520fcd4cee34bf70b43;hp=abf396de3ba4417518cb52a49a53a534433f5039;hb=48fb18a605cafef572e0c41263eb576c386b7c9f;hpb=0e08ac6d2a622f7103019a6a72822665a9a06a06 diff --git a/src/graph_ident.c b/src/graph_ident.c index abf396d..5c513ec 100644 --- a/src/graph_ident.c +++ b/src/graph_ident.c @@ -456,6 +456,9 @@ char *ident_to_string (const graph_ident_t *ident) /* {{{ */ { char buffer[PATH_MAX]; + if (ident == NULL) + return (NULL); + buffer[0] = 0; strlcat (buffer, ident->host, sizeof (buffer));