Skip to content

Commit cea2e8e

Browse files
committed
Fix an invalid return value
1 parent e6ca5b1 commit cea2e8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/askpassd/question.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ find_prefix_in_section(const char *start, const char *end, const char *prefix,
4747

4848
startl = memmem(start, end - start, prefix, plen);
4949
if (startl == NULL)
50-
return NULL;
50+
return ENOENT;
5151
startl += plen;
5252

5353
endl = memchr(startl, '\n', end - startl);

0 commit comments

Comments
 (0)