Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cvsps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1967,6 +1967,10 @@ CvsFileRevision * cvs_file_add_revision(CvsFile * file, const char * rev_str)
if (!(rev = (CvsFileRevision*)get_hash_object(file->revisions, rev_str)))
{
rev = (CvsFileRevision*)calloc(1, sizeof(*rev));
if (rev == NULL)
{
return (NULL);
}
rev->rev = get_string(rev_str);
rev->file = file;
rev->branch = NULL;
Expand Down Expand Up @@ -2083,6 +2087,10 @@ static PatchSet * create_patch_set()
PatchSetMember * create_patch_set_member()
{
PatchSetMember * psm = (PatchSetMember*)calloc(1, sizeof(*psm));
if (psm == NULL)
{
return (NULL);
}
psm->pre_rev = NULL;
psm->post_rev = NULL;
psm->ps = NULL;
Expand Down Expand Up @@ -2204,6 +2212,10 @@ void cvs_file_add_symbol(CvsFile * file, const char * rev_str, const char * p_ta
if (!sym)
{
sym = (GlobalSymbol*)malloc(sizeof(*sym));
if (sym == NULL)
{
return;
}
sym->tag = tag_str;
sym->ps = NULL;
INIT_LIST_HEAD(&sym->tags);
Expand Down