Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
8237a852
Commit
8237a852
authored
20 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
change mallocs to g_malloc0
parent
91424fbd
No related branches found
Branches containing commit
Tags
RELEASE_0-1-77
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/zmapWindow/seqregion.c
+3
-3
3 additions, 3 deletions
src/zmapWindow/seqregion.c
src/zmapWindow/stringbucket.c
+3
-3
3 additions, 3 deletions
src/zmapWindow/stringbucket.c
src/zmapWindow/zmapbccol.c
+2
-2
2 additions, 2 deletions
src/zmapWindow/zmapbccol.c
with
8 additions
and
8 deletions
src/zmapWindow/seqregion.c
+
3
−
3
View file @
8237a852
...
@@ -25,9 +25,9 @@
...
@@ -25,9 +25,9 @@
* Description:
* Description:
* Exported functions: See XXXXXXXXXXXXX.h
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* HISTORY:
* Last edited: Ju
n 30 13
:5
8
2004 (edgrif)
* Last edited: Ju
l 16 09
:5
0
2004 (edgrif)
* Created: Wed Jun 30 13:38:10 2004 (edgrif)
* Created: Wed Jun 30 13:38:10 2004 (edgrif)
* CVS info: $Id: seqregion.c,v 1.
5
2004-07-
01 09:26
:2
4
edgrif Exp $
* CVS info: $Id: seqregion.c,v 1.
6
2004-07-
16 08:51
:2
9
edgrif Exp $
*-------------------------------------------------------------------
*-------------------------------------------------------------------
*/
*/
...
@@ -63,7 +63,7 @@ Coord srCoord(ZMapRegion *zMapRegion, InvarCoord coord)
...
@@ -63,7 +63,7 @@ Coord srCoord(ZMapRegion *zMapRegion, InvarCoord coord)
/* Creates a new, empty ZMapRegion structure. */
/* Creates a new, empty ZMapRegion structure. */
ZMapRegion
*
srCreate
(
void
)
ZMapRegion
*
srCreate
(
void
)
{
{
ZMapRegion
*
zMapRegion
=
(
ZMapRegion
*
)
g_malloc
(
sizeof
(
ZMapRegion
))
;
ZMapRegion
*
zMapRegion
=
(
ZMapRegion
*
)
g_malloc
0
(
sizeof
(
ZMapRegion
))
;
zMapRegion
->
area1
=
zMapRegion
->
area2
=
0
;
zMapRegion
->
area1
=
zMapRegion
->
area2
=
0
;
zMapRegion
->
methods
=
NULL
;
zMapRegion
->
methods
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapWindow/stringbucket.c
+
3
−
3
View file @
8237a852
/* Last edited: Jul
5 14:37
2004 (
rnc
) */
/* Last edited: Jul
16 09:50
2004 (
edgrif
) */
/* file: stringbucket.c
/* file: stringbucket.c
* Author: Simon Kelley (srk@sanger.ac.uk)
* Author: Simon Kelley (srk@sanger.ac.uk)
* Copyright (c) Sanger Institute, 2003
* Copyright (c) Sanger Institute, 2003
...
@@ -42,7 +42,7 @@ struct sbucketchain {
...
@@ -42,7 +42,7 @@ struct sbucketchain {
StringBucket
*
sbCreate
(
void
)
StringBucket
*
sbCreate
(
void
)
{
{
StringBucket
*
b
=
g_malloc
(
sizeof
(
struct
sbucket
))
;
StringBucket
*
b
=
g_malloc
0
(
sizeof
(
struct
sbucket
))
;
b
->
chain
=
NULL
;
b
->
chain
=
NULL
;
...
@@ -74,7 +74,7 @@ char *str2p(char *string, StringBucket *b)
...
@@ -74,7 +74,7 @@ char *str2p(char *string, StringBucket *b)
if
(
!
c
)
if
(
!
c
)
{
{
c
=
g_malloc
(
sizeof
(
struct
sbucketchain
)
+
strlen
(
string
)
+
1
)
;
c
=
g_malloc
0
(
sizeof
(
struct
sbucketchain
)
+
strlen
(
string
)
+
1
)
;
c
->
next
=
b
->
chain
;
c
->
next
=
b
->
chain
;
b
->
chain
=
c
;
b
->
chain
=
c
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapWindow/zmapbccol.c
+
2
−
2
View file @
8237a852
/* Last edited: Jul
6
10:20
2004 (
rnc
) */
/* Last edited: Jul
1
6
09:51
2004 (
edgrif
) */
/* file: zmapbccol.c
/* file: zmapbccol.c
* Author: Simon Kelley (srk@sanger.ac.uk)
* Author: Simon Kelley (srk@sanger.ac.uk)
* Copyright (c) Sanger Institute, 2003
* Copyright (c) Sanger Institute, 2003
...
@@ -154,7 +154,7 @@ void nbcInit(ZMapPane pane, ZMapColumn *col)
...
@@ -154,7 +154,7 @@ void nbcInit(ZMapPane pane, ZMapColumn *col)
{
{
/* this whole bit needs to be rewritten, so it's OK to comment it out, I think
/* this whole bit needs to be rewritten, so it's OK to comment it out, I think
srMeth *meth = srMethodFromID(zMapPaneGetZMapRegion(pane), col->meth);
srMeth *meth = srMethodFromID(zMapPaneGetZMapRegion(pane), col->meth);
nbcPrivate *bc = (nbcPrivate*)malloc(sizeof(nbcPrivate));
nbcPrivate *bc = (nbcPrivate*)
g_
malloc
0
(sizeof(nbcPrivate));
// nbcPrivate *bc = handleAlloc(nbcFinalise, zMapWindowGetHandle(pane->window),
// nbcPrivate *bc = handleAlloc(nbcFinalise, zMapWindowGetHandle(pane->window),
// sizeof(nbcPrivate));
// sizeof(nbcPrivate));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment