/**
*/
typedef struct {
-/*@observer@*/ /*@null@*/ const char *msg;
-/*@observer@*/ /*@null@*/ const char *argv[4];
+/*@observer@*/ /*@null@*/ const char * msg;
+/*@observer@*/ const char * argv[4];
int ntag;
int vtag;
int ftag;
if (hasFlags && !((*flags & dm->mask) ^ dm->xor))
continue;
if (bingo == 0) {
- rpmMessage(RPMMESS_NORMAL, "%s:", dm->msg);
+ rpmMessage(RPMMESS_NORMAL, "%s:", (dm->msg ? dm->msg : ""));
bingo = 1;
}
rpmMessage(RPMMESS_NORMAL, " %s", *names);
_printit = (rc > 0 ? 0 : _debug);
xx = cvtdberr(dbi, "db->open", rc, _printit);
- if (rc == 0 && dbi->dbi_use_dbenv && (dbi->dbi_eflags & DB_INIT_CDB) && dbi->dbi_get_rmw_cursor) {
+ if (rc == 0 && dbi->dbi_use_dbenv
+ && (dbi->dbi_eflags & DB_INIT_CDB) && dbi->dbi_get_rmw_cursor)
+ {
DBC * dbcursor = NULL;
xx = db->cursor(db, txnid, &dbcursor,
((oflags & DB_RDONLY) ? 0 : DB_WRITECURSOR));
};
/*@=immediatetrans =exportlocal =exportheadervar@*/
-static int dbSaveLong(const struct dbOption * opt, int argInfo, long aLong) {
+static int dbSaveLong(const struct dbOption * opt, int argInfo, long aLong)
+ /*@modifies opt->arg @*/
+{
if (argInfo & POPT_ARGFLAG_NOT)
aLong = ~aLong;
if (opt->arg != NULL)
return 0;
}
-static int dbSaveInt(const struct dbOption * opt, int argInfo, long aLong) {
+static int dbSaveInt(const struct dbOption * opt, int argInfo, long aLong)
+ /*@modifies opt->arg @*/
+{
if (argInfo & POPT_ARGFLAG_NOT)
aLong = ~aLong;
if (opt->arg != NULL)
return 0;
}
-dbiIndex db3Free(dbiIndex dbi) {
+dbiIndex db3Free(dbiIndex dbi)
+{
if (dbi) {
dbi->dbi_root = _free(dbi->dbi_root);
dbi->dbi_home = _free(dbi->dbi_home);
if (dbOpts && *dbOpts && *dbOpts != '%') {
char *o, *oe;
char *p, *pe;
+
+ memset(&db3dbi, 0, sizeof(db3dbi));
for (o = dbOpts; o && *o; o = oe) {
struct dbOption *opt;
const char * tok;
dbOpts = _free(dbOpts);
- memset(&db3dbi, 0, sizeof(db3dbi));
/*@-assignexpose@*/
*dbi = db3dbi; /* structure assignment */
/*@=assignexpose@*/
+ memset(&db3dbi, 0, sizeof(db3dbi));
if (!(dbi->dbi_perms & 0600))
dbi->dbi_perms = 0644;