Cleanup: remove redundant NULL checks
This commit is contained in:
parent
bf13a4d3ff
commit
87b6283918
|
@ -1012,7 +1012,7 @@ static void gpencil_brush_clone_add(bContext *C, tGP_BrushEditData *gso)
|
|||
|
||||
bGPDlayer *gpl = NULL;
|
||||
/* Try to use original layer. */
|
||||
if (gps->runtime.tmp_layerinfo != NULL) {
|
||||
if (gps->runtime.tmp_layerinfo[0] != '\0') {
|
||||
gpl = BKE_gpencil_layer_named_get(gpd, gps->runtime.tmp_layerinfo);
|
||||
}
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ static void seq_add_generic_update(Scene *scene, ListBase *seqbase, Sequence *se
|
|||
|
||||
static void seq_add_set_name(Sequence *seq, SeqLoadData *load_data)
|
||||
{
|
||||
if (load_data->name != NULL && load_data->name[0] != '\0') {
|
||||
if (load_data->name[0] != '\0') {
|
||||
BLI_strncpy(seq->name + 2, load_data->name, sizeof(seq->name) - 2);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue