Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-12-23 06:08:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-23 06:08:32 +0400
commit2a2c27b175edc204206f502a18398b8c50cfca76 (patch)
tree2f0662df0b3871afe7a89c83e3fd3a5372df4198 /source/creator
parent7294c54db072c17b2437d59937848a2c1a7c8001 (diff)
Fix for crash when no args where given with -o, -x command line args
Patch D123 from djnz (Masakazu Ito)
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 9889eacc5db..3d0b558a502 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -779,7 +779,7 @@ static int set_audio(int argc, const char **argv, void *UNUSED(data))
static int set_output(int argc, const char **argv, void *data)
{
bContext *C = data;
- if (argc >= 1) {
+ if (argc > 1) {
Scene *scene = CTX_data_scene(C);
if (scene) {
BLI_strncpy(scene->r.pic, argv[1], sizeof(scene->r.pic));
@@ -897,7 +897,7 @@ static int set_verbosity(int argc, const char **argv, void *UNUSED(data))
static int set_extension(int argc, const char **argv, void *data)
{
bContext *C = data;
- if (argc >= 1) {
+ if (argc > 1) {
Scene *scene = CTX_data_scene(C);
if (scene) {
if (argv[1][0] == '0') {