diff options
| author | Lars Hjemli <hjemli@gmail.com> | 2007-02-03 16:11:41 +0100 | 
|---|---|---|
| committer | Lars Hjemli <hjemli@gmail.com> | 2007-02-04 21:21:46 +0100 | 
| commit | ebd7b0fbc378e9beca0b275c5cd9150c930bde56 (patch) | |
| tree | 6ee9ef66be06b164732bcc77930b9186c2819da9 | |
| parent | Fix search for non-virtual urls (diff) | |
| download | cgit-ebd7b0fbc378e9beca0b275c5cd9150c930bde56.tar.gz cgit-ebd7b0fbc378e9beca0b275c5cd9150c930bde56.tar.bz2 cgit-ebd7b0fbc378e9beca0b275c5cd9150c930bde56.zip | |
Do not die if tag has no message
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
| -rw-r--r-- | parsing.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -220,7 +220,7 @@ struct taginfo *cgit_parse_tag(struct tag *tag)  	p = data; -	while (p) { +	while (p && *p) {  		if (*p == '\n')  			break; @@ -238,7 +238,7 @@ struct taginfo *cgit_parse_tag(struct tag *tag)  	while (p && (*p == '\n'))  		p = strchr(p, '\n') + 1; -	if (p) +	if (p && *p)  		ret->msg = xstrdup(p);  	free(data);  	return ret; | 
