diff options
author | jbj <devnull@localhost> | 2000-02-23 17:34:41 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-02-23 17:34:41 +0000 |
commit | becec721d0a3e2f927b1abed7ef792724f9a642d (patch) | |
tree | 01256b4dd77fe33cd5b8c739510445d28d6e9924 /build | |
parent | 6e545408441c511267b1252e29ea0668f3cc37ce (diff) | |
download | librpm-tizen-becec721d0a3e2f927b1abed7ef792724f9a642d.tar.gz librpm-tizen-becec721d0a3e2f927b1abed7ef792724f9a642d.tar.bz2 librpm-tizen-becec721d0a3e2f927b1abed7ef792724f9a642d.zip |
i18n lookaside.
CVS patchset: 3581
CVS date: 2000/02/23 17:34:41
Diffstat (limited to 'build')
-rw-r--r-- | build/spec.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/build/spec.c b/build/spec.c index 760d4a22c..113809f8d 100644 --- a/build/spec.c +++ b/build/spec.c @@ -7,7 +7,7 @@ #include "rpmbuild.h" #include "buildio.h" -extern char *specedit; +extern int specedit; extern MacroContext rpmGlobalMacroContext; #define SKIPWHITE(_x) {while(*(_x) && (isspace(*_x) || *(_x) == ',')) (_x)++;} @@ -354,13 +354,13 @@ int addSource(Spec spec, Package pkg, const char *field, int tag) static inline struct speclines * newSl(void) { - struct speclines *sl; - if (specedit == NULL) - return NULL; - sl = xmalloc(sizeof(struct speclines)); - sl->sl_lines = NULL; - sl->sl_nalloc = 0; - sl->sl_nlines = 0; + struct speclines *sl = NULL; + if (specedit) { + sl = xmalloc(sizeof(struct speclines)); + sl->sl_lines = NULL; + sl->sl_nalloc = 0; + sl->sl_nlines = 0; + } return sl; } @@ -377,13 +377,13 @@ static inline void freeSl(/*@only@*/struct speclines *sl) static inline struct spectags * newSt(void) { - struct spectags *st; - if (specedit == NULL) - return NULL; - st = xmalloc(sizeof(struct spectags)); - st->st_t = NULL; - st->st_nalloc = 0; - st->st_ntags = 0; + struct spectags *st = NULL; + if (specedit) { + st = xmalloc(sizeof(struct spectags)); + st->st_t = NULL; + st->st_nalloc = 0; + st->st_ntags = 0; + } return st; } |