diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-30 13:24:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-30 13:24:10 +0400 |
commit | f66ec41b6a3b74f079c19494357c268e1ab39e85 (patch) | |
tree | dab6b2a879fc31ad1ae8a2e187679646b9d01a18 /source/blender/blenlib/intern/BLI_args.c | |
parent | 6a27da310c61b3372d565060506221a5afb9fe43 (diff) |
quiet some compiler warnings & fix possible (but unlikely) crash.
also added GPLv2+ header to resources.c.
Diffstat (limited to 'source/blender/blenlib/intern/BLI_args.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_args.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_args.c b/source/blender/blenlib/intern/BLI_args.c index 7bc93a3d3a0..5f31565d65b 100644 --- a/source/blender/blenlib/intern/BLI_args.c +++ b/source/blender/blenlib/intern/BLI_args.c @@ -290,8 +290,10 @@ void BLI_argsParse(struct bArgs *ba, int pass, BA_ArgCallback default_cb, void * } i += retval; } else if (retval == -1){ - if (a->key->pass != -1) - ba->passes[i] = pass; + if (a) { + if (a->key->pass != -1) + ba->passes[i] = pass; + } break; } } |