[Bf-blender-cvs] [2a2c27b] master: Fix for crash when no args where given with -o, -x command line args
Campbell Barton
noreply at git.blender.org
Mon Dec 23 03:09:45 CET 2013
Commit: 2a2c27b175edc204206f502a18398b8c50cfca76
Author: Campbell Barton
Date: Mon Dec 23 13:08:32 2013 +1100
http://developer.blender.org/rB2a2c27b175edc204206f502a18398b8c50cfca76
Fix for crash when no args where given with -o, -x command line args
Patch D123 from djnz (Masakazu Ito)
===================================================================
M source/creator/creator.c
===================================================================
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 9889eac..3d0b558 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') {
More information about the Bf-blender-cvs
mailing list