summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-12-19 18:59:46 +0000
committerjbj <devnull@localhost>1999-12-19 18:59:46 +0000
commite6c1c88e7c0ab49ebfc35c18319b731d187be760 (patch)
tree598d828c05de54797c9d2490a139d4a0c6be593b /lib
parent2a7a110805a4ec51e5227e51147a831d4bfb8277 (diff)
downloadlibrpm-tizen-e6c1c88e7c0ab49ebfc35c18319b731d187be760.tar.gz
librpm-tizen-e6c1c88e7c0ab49ebfc35c18319b731d187be760.tar.bz2
librpm-tizen-e6c1c88e7c0ab49ebfc35c18319b731d187be760.zip
Typo (t->num rather than tnum causes segfault while re-reading rpmrc on exit).
CVS patchset: 3491 CVS date: 1999/12/19 18:59:46
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmrc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmrc.c b/lib/rpmrc.c
index 926fc3caa..350537d78 100644
--- a/lib/rpmrc.c
+++ b/lib/rpmrc.c
@@ -282,8 +282,8 @@ static void machFindEquivs(struct machCache * cache,
machCacheEntryVisit(cache, table, key, 2);
}
-static int addCanon(struct canonEntry **table, int *tableLen, char *line,
- const char *fn, int lineNum)
+static int addCanon(struct canonEntry ** table, int * tableLen, char * line,
+ const char * fn, int lineNum)
{
struct canonEntry *t;
char *s, *s1;
@@ -314,7 +314,7 @@ static int addCanon(struct canonEntry **table, int *tableLen, char *line,
}
tnum = strtoul(s, &s1, 10);
- if ((*s1) || (s1 == s) || (t->num == ULONG_MAX)) {
+ if ((*s1) || (s1 == s) || (tnum == ULONG_MAX)) {
rpmError(RPMERR_RPMRC, _("Bad arch/os number: %s (%s:%d)"), s,
fn, lineNum);
return(RPMERR_RPMRC);