]> git.cameronkatri.com Git - cgit.git/commit
ui-shared: fix segfault when defbranch is NULL
authorEric Wong <normalperson@yhbt.net>
Wed, 6 Jul 2016 07:08:01 +0000 (07:08 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 6 Jul 2016 09:29:23 +0000 (11:29 +0200)
commit590ba455d694deaf2ec206510cf7f047ac365a96
treebfea40b66089cba4bd2f2120eb35725aae6b5531
parentc19d983ed7b86face56e41effea4fffcf9ad1e19
ui-shared: fix segfault when defbranch is NULL

Not sure if there's a better fix for this.  defbranch is
NULL here on my setup when a crawler hit an invalid URL,
causing strcmp to segfault.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
ui-shared.c