]> granicus.if.org Git - strace/commitdiff
signal: return NULL is signal number has no string representation
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 7 Oct 2018 03:25:33 +0000 (05:25 +0200)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 7 Oct 2018 03:25:33 +0000 (05:25 +0200)
* signal.c (signame): Return NULL if signal name hasn't been found.

signal.c

index cffd7c179f506fa2ef7d87cbbe356d8aa09a2374..bfda8dea6f28e539552f3e94512932387a7d473f 100644 (file)
--- a/signal.c
+++ b/signal.c
@@ -141,8 +141,8 @@ signame(const int sig)
                }
 #endif
        }
-       xsprintf(buf, "%d", sig);
-       return buf;
+
+       return NULL;
 }
 
 static unsigned int