summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Frolov <froller@froller.net>2012-02-21 15:04:05 +0400
committerAlexander Frolov <froller@froller.net>2012-02-21 15:04:05 +0400
commit45856e02edf4d40dff7e8007cc31378dcccf8211 (patch)
tree490bad5cbe00a8eb3404f3f2ed66fb016ff4c14f
parent4fd7ab2ce46794bd18ea125e9c8e2d25d5fe95a7 (diff)
downloadnyancat-45856e02edf4d40dff7e8007cc31378dcccf8211.tar.gz
Fixed SegFault if TERM variable is not set
-rw-r--r--src/nyancat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nyancat.c b/src/nyancat.c
index 3cbca75..46b201e 100644
--- a/src/nyancat.c
+++ b/src/nyancat.c
@@ -364,7 +364,8 @@ int main(int argc, char ** argv) {
/* We are running standalone, retrieve the
* terminal type from the environment. */
char * nterm = getenv("TERM");
- strcpy(term, nterm);
+ if (nterm)
+ strcpy(term, nterm);
/* Also get the number of columns */
struct winsize w;
lass='logmsg'> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-03-07Update satellite channel lists from LyngsatMauro Carvalho Chehab54-1882/+2326 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2021-12-14dtv-scan-tables: latest UK changesSimon Liddicott4-24/+24 only includes transmitters where there have been changes Link: https://lore.kernel.org/linux-media/20210128234622.75009-1-simon@liddicott.com Signed-off-by: Simon Liddicott <simon@liddicott.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30update Brazilian scan filesMauro Carvalho Chehab2476-12805/+69312 Data updated according with https://portalbsd.com.br/. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Remove legacy entriesMauro Carvalho Chehab129-24898/+0 There are several entries that used to be at Lyngsat. Several of them were merged with other entries. On others, there's no TV signal anymore. So, drop them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Add new satellites from LyngsatMauro Carvalho Chehab75-21/+29721 Those are are new satellite descriptions that didn't use to exist on Lyngsat. Add them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Rename a few satellites with two names and update frequenciesMauro Carvalho Chehab2-283/+182 Those two satellites have two names. Use Just one of them. While here, update their frequencies from Lyngsat. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Update frequencies from LyngsatMauro Carvalho Chehab188-12304/+12666 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>