Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed SEGV when sending empty tag strings.

  • Loading branch information...
commit be44e166c40e9708dbee563dbe6915a5391fe75c 1 parent b45e7b8
Jonas Kramer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  source/tag.c
View
2  source/tag.c
@@ -222,7 +222,7 @@ void sendtag(char key, char * tagstring, struct hash data) {
if(tagstring) {
unsigned length = strlen(tagstring);
/* remove trailing commas */
- while(tagstring[length-1] == ',')
+ while(length > 0 && tagstring[length-1] == ',')
tagstring[--length] = 0;
splt = split(tagstring, ",\n", & nsplt);
Please sign in to comment.
Something went wrong with that request. Please try again.