Skip to content

Conversation

legionus
Copy link
Contributor

If the overwriteStruct() finds an uninitialized pointer, it tries to initialize it, but does it incorrectly. It tries to assign a pointer to pointer, instead of pointer.

If the overwriteStruct() finds an uninitialized pointer, it tries to initialize it,
but does it incorrectly. It tries to assign a pointer to pointer, instead of pointer.

Signed-off-by: Gladkov Alexey <agladkov@redhat.com>
@codecov
Copy link

codecov bot commented Nov 14, 2017

Codecov Report

Merging #2446 into master will decrease coverage by 9.55%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2446      +/-   ##
==========================================
- Coverage   60.32%   50.76%   -9.56%     
==========================================
  Files         126      126              
  Lines       14436    14436              
==========================================
- Hits         8708     7329    -1379     
- Misses       4844     6363    +1519     
+ Partials      884      744     -140
Impacted Files Coverage Δ
configuration/parser.go 85.27% <100%> (+2.45%) ⬆️
registry/storage/driver/gcs/gcs.go 0.32% <0%> (-66.13%) ⬇️
registry/storage/driver/oss/oss.go 0.45% <0%> (-56.5%) ⬇️
registry/storage/driver/s3-aws/s3.go 4.07% <0%> (-55.4%) ⬇️
registry/storage/driver/s3-goamz/s3.go 0.4% <0%> (-52.4%) ⬇️
registry/client/transport/transport.go 68.75% <0%> (-8.75%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5b5e44...e698374. Read the comment docs.

@zhouhaibing089
Copy link
Contributor

Can you add a unit test for this?

@legionus
Copy link
Contributor Author

@zhouhaibing089 Sure. Done.

Signed-off-by: Gladkov Alexey <agladkov@redhat.com>
@legionus legionus force-pushed the docker-configuration-ptr branch from 888b248 to e698374 Compare November 15, 2017 16:01
@legionus
Copy link
Contributor Author

@RichardScothern please review

@dmp42
Copy link
Contributor

dmp42 commented Mar 21, 2018

@legionus thanks for the work on this (and the test).

Still confused by the description here. Can you elaborate a bit?

Thanks.

cc @stevvooe

Copy link
Collaborator

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dmcgowan dmcgowan merged commit f593b8d into distribution:master Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants