bluetech/kmscon — comment on commit 0a5bf7bb2840bb493f0f297c4dce86e2bda04cc9
File: src/vte.c line 302
By dvdhrm:

You should not check for 0 here, this doesn't make sense. A console is guaranteed to have a width/height != 0 if it is non-NULL so you can simply rely on that here.