summaryrefslogtreecommitdiff
path: root/test-string-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-string-list.c')
-rw-r--r--test-string-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-string-list.c b/test-string-list.c
index 00ce6c9a12..14bdf9d215 100644
--- a/test-string-list.c
+++ b/test-string-list.c
@@ -38,7 +38,7 @@ static void write_list_compact(const struct string_list *list)
static int prefix_cb(struct string_list_item *item, void *cb_data)
{
const char *prefix = (const char *)cb_data;
- return !prefixcmp(item->string, prefix);
+ return starts_with(item->string, prefix);
}
int main(int argc, char **argv)