summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjoerg <joerg>2012-11-30 16:22:49 +0000
committerjoerg <joerg>2012-11-30 16:22:49 +0000
commit4443c66ca1a591673b4ca51fb8f26723c11fb211 (patch)
tree163e4d45969cb48e1f2516f406a097f85dbdda26 /pkgtools
parentf38c166a34105e0f20ae79f31a0d22f65bc82cc8 (diff)
downloadpkgsrc-4443c66ca1a591673b4ca51fb8f26723c11fb211.tar.gz
Make GCC happy and set s_start and s_end explicitly.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pbulk/files/pbulk/pscan/jobs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgtools/pbulk/files/pbulk/pscan/jobs.c b/pkgtools/pbulk/files/pbulk/pscan/jobs.c
index d046598d1ec..8b11e059ed9 100644
--- a/pkgtools/pbulk/files/pbulk/pscan/jobs.c
+++ b/pkgtools/pbulk/files/pbulk/pscan/jobs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: jobs.c,v 1.6 2012/11/23 12:13:35 joerg Exp $ */
+/* $NetBSD: jobs.c,v 1.7 2012/11/30 16:22:49 joerg Exp $ */
/*-
* Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
@@ -176,6 +176,7 @@ read_old_scan(const char *path)
entry_start = buf;
l_start = l_end = NULL;
entry_start = buf;
+ s_start = s_end = NULL;
for (line = buf; *line; line = eol) {
eol = strchr(line, '\n');
if (eol == NULL)
@@ -188,6 +189,7 @@ read_old_scan(const char *path)
entry_start, line);
l_start = l_end = NULL;
entry_start = line;
+ s_start = s_end = NULL;
} else if (strncmp(line, "PKG_LOCATION=", 13) == 0) {
l_start = line + 13;
l_end = eol - 1;