From 3e4bdfedee747868a32b8a9c7a89a6f860415be8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 1 May 2017 17:28:19 +0200 Subject: Minor cleanup --- src/libutil/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 026e493514ea..98c0aff1e722 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1078,9 +1078,9 @@ bool statusOk(int status) } -bool hasPrefix(const string & s, const string & suffix) +bool hasPrefix(const string & s, const string & prefix) { - return s.compare(0, suffix.size(), suffix) == 0; + return s.compare(0, prefix.size(), prefix) == 0; } -- cgit 1.4.1