From: Lukas Fleischer Date: Mon, 9 Feb 2015 06:25:00 +0000 (+0100) Subject: ui-clone.c: Fix path check X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/b66b16ed026c6f57ad8ae892c821d835113e7fb2?ds=inline;hp=b66b16ed026c6f57ad8ae892c821d835113e7fb2 ui-clone.c: Fix path check The starts_with() check was broken in two ways: For one thing, the parameters were passed in the wrong order, for another thing, starts_with() returns 1 if the string starts with the prefix (not 0). Note that this bug existed since commit 02a545e (Add support for cloning over http, 2008-08-06) but only pops in in corner cases. Signed-off-by: Lukas Fleischer ---