diff options
author | jbj <devnull@localhost> | 1999-12-19 18:59:46 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-12-19 18:59:46 +0000 |
commit | e6c1c88e7c0ab49ebfc35c18319b731d187be760 (patch) | |
tree | 598d828c05de54797c9d2490a139d4a0c6be593b /lib | |
parent | 2a7a110805a4ec51e5227e51147a831d4bfb8277 (diff) | |
download | rpm-e6c1c88e7c0ab49ebfc35c18319b731d187be760.tar.gz rpm-e6c1c88e7c0ab49ebfc35c18319b731d187be760.tar.bz2 rpm-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.c | 6 |
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); |