Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7f554464
Kaydet (Commit)
7f554464
authored
Tem 10, 2014
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#982762 Dereference NULL
Change-Id: I9da66fe9cf279231d6024f23fbb273797b289ba7
üst
942c21a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
process.cxx
sal/osl/unx/process.cxx
+12
-4
No files found.
sal/osl/unx/process.cxx
Dosyayı görüntüle @
7f554464
...
@@ -919,11 +919,14 @@ bool osl_getProcStat(pid_t pid, struct osl_procStat* procstat)
...
@@ -919,11 +919,14 @@ bool osl_getProcStat(pid_t pid, struct osl_procStat* procstat)
return
false
;
return
false
;
tmp
=
strrchr
(
prstatbuf
,
')'
);
tmp
=
strrchr
(
prstatbuf
,
')'
);
*
tmp
=
'\0'
;
if
(
tmp
)
memset
(
procstat
->
command
,
0
,
sizeof
(
procstat
->
command
));
{
*
tmp
=
'\0'
;
sscanf
(
prstatbuf
,
"%d (%15c"
,
&
procstat
->
pid
,
procstat
->
command
);
memset
(
procstat
->
command
,
0
,
sizeof
(
procstat
->
command
));
sscanf
(
tmp
+
2
,
sscanf
(
prstatbuf
,
"%d (%15c"
,
&
procstat
->
pid
,
procstat
->
command
);
sscanf
(
tmp
+
2
,
"%c"
"%c"
"%i %i %i %i %i"
"%i %i %i %i %i"
"%lu %lu %lu %lu %lu"
"%lu %lu %lu %lu %lu"
...
@@ -943,6 +946,11 @@ bool osl_getProcStat(pid_t pid, struct osl_procStat* procstat)
...
@@ -943,6 +946,11 @@ bool osl_getProcStat(pid_t pid, struct osl_procStat* procstat)
procstat
->
signal
,
procstat
->
blocked
,
procstat
->
sigignore
,
procstat
->
sigcatch
,
procstat
->
signal
,
procstat
->
blocked
,
procstat
->
sigignore
,
procstat
->
sigcatch
,
&
procstat
->
wchan
,
&
procstat
->
nswap
,
&
procstat
->
cnswap
&
procstat
->
wchan
,
&
procstat
->
nswap
,
&
procstat
->
cnswap
);
);
}
else
{
bRet
=
false
;
}
}
}
return
bRet
;
return
bRet
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment