Skip to content

Commit

Permalink
Handle the uninitialized situation
Browse files Browse the repository at this point in the history
  • Loading branch information
furuame committed Aug 16, 2018
1 parent 04c73d5 commit ffd47c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dcurl.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ int8_t *dcurl_entry(int8_t *trytes, int mwm)
ImplContext *impl = NULL;
struct list_head *p;

if (!isInitialized) return NULL;

do {
list_for_each(p, &IMPL_LIST) {
impl = list_entry(p, ImplContext, list);
Expand Down

0 comments on commit ffd47c7

Please sign in to comment.