fallin': correct sense of ncvisual_decode() test

This commit is contained in:
nick black 2020-04-24 04:04:36 -04:00 committed by Nick Black
parent 1d66f89032
commit 3624953700

View File

@ -177,14 +177,14 @@ int fallin_demo(struct notcurses* nc){
ncplane_erase(stdn);
#ifdef USE_MULTIMEDIA
#ifndef DFSG_BUILD
nc_err_e err = 0;
nc_err_e err = NCERR_SUCCESS;
char* path = find_data("lamepatents.jpg");
struct ncvisual* ncv = ncplane_visual_open(stdn, path, &err);
free(path);
if(ncv == NULL){
return -1;
}
if((err = ncvisual_decode(ncv)) == NCERR_SUCCESS){
if((err = ncvisual_decode(ncv)) != NCERR_SUCCESS){
ncvisual_destroy(ncv);
return -1;
}