tiny bug
Benjamin Marzinski
maintainermulitpathd was crashing when I entered an empty line at the CLI prompt, because the output buffer from get_word was being checked to see if it was NULL, but get_word never explicitly sets the buffer to NULL if there is no word.
The patch fixes this.
-Ben
libmultipath/util.c +2 -0
@@ -59,6 +59,8 @@ get_word (char * sentence, char ** word)int len;int skip =0 ; +if (word) + *word =NULL ;while (*sentence ==' ' ) { sentence++; skip++;
christophe varoqui
AppliedQuoted 6 lines · Benjamin Marzinski
mulitpathd was crashing when I entered an empty line at the CLI prompt, because the output buffer from
get_wordwas being checked to see if it was NULL, butget_wordnever explicitly sets the buffer to NULL if there is no word.The patch fixes this.
Applied, thanks.
Signature · 1 line
christophe varoqui <[email protected]>