add missing NULL check

http://www.wireshark.org/download/automated/analysis/scan-build-2013-03-12-1/report-q1cLLC.html#EndPath


svn path=/trunk/; revision=48283
This commit is contained in:
Martin Kaiser 2013-03-13 22:39:50 +00:00
parent 04766017df
commit 95ab41e938
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ static int ringbuf_open_file(rb_file *rfile, int *err)
rfile->name = g_strconcat(rb_data.fprefix, "_", filenum, "_", timestr,
rb_data.fsuffix, NULL);
if (rfile->name == NULL) {
if (rfile->name == NULL && err != NULL) {
*err = ENOMEM;
return -1;
}