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
e6c68c3e
Kaydet (Commit)
e6c68c3e
authored
Eki 31, 2010
tarafından
Gert Faller
Kaydeden (comit)
Caolán McNamara
Eki 31, 2010
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix cppcheck warnings
üst
8cad7d19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
unoapploader.c
odk/source/unoapploader/unx/unoapploader.c
+4
-2
unoapploader.c
odk/source/unoapploader/win/unoapploader.c
+4
-2
No files found.
odk/source/unoapploader/unx/unoapploader.c
Dosyayı görüntüle @
e6c68c3e
...
@@ -146,13 +146,15 @@ int main( int argc, char *argv[] )
...
@@ -146,13 +146,15 @@ int main( int argc, char *argv[] )
libpath
=
NULL
;
libpath
=
NULL
;
for
(;;)
{
for
(;;)
{
size_t
m
;
size_t
m
;
libpath
=
realloc
(
libpath
,
n
);
char
*
test
=
realloc
(
libpath
,
n
);
if
(
libpath
==
NULL
)
{
if
(
test
==
NULL
)
{
fprintf
(
fprintf
(
stderr
,
stderr
,
"Error: out of memory reading unoinfo output!
\n
"
);
"Error: out of memory reading unoinfo output!
\n
"
);
free
(
libpath
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
libpath
=
test
;
m
=
fread
(
libpath
+
old
,
1
,
n
-
old
-
1
,
f
);
m
=
fread
(
libpath
+
old
,
1
,
n
-
old
-
1
,
f
);
if
(
m
!=
n
-
old
-
1
)
{
if
(
m
!=
n
-
old
-
1
)
{
if
(
ferror
(
f
))
{
if
(
ferror
(
f
))
{
...
...
odk/source/unoapploader/win/unoapploader.c
Dosyayı görüntüle @
e6c68c3e
...
@@ -152,13 +152,15 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
...
@@ -152,13 +152,15 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
CloseHandle
(
procinfo
.
hThread
);
CloseHandle
(
procinfo
.
hThread
);
for
(;;)
{
for
(;;)
{
DWORD
m
;
DWORD
m
;
buf
=
realloc
(
buf
,
n
);
char
*
test
=
realloc
(
buf
,
n
);
if
(
buf
==
NULL
)
{
if
(
test
==
NULL
)
{
writeError
(
writeError
(
"Error: out of memory reading unoinfo output!
\n
"
);
"Error: out of memory reading unoinfo output!
\n
"
);
closeErrorFile
();
closeErrorFile
();
free
(
buf
);
return
1
;
return
1
;
}
}
buf
=
test
;
if
(
!
ReadFile
(
stdoutRead
,
buf
+
k
,
n
-
k
,
&
m
,
NULL
))
if
(
!
ReadFile
(
stdoutRead
,
buf
+
k
,
n
-
k
,
&
m
,
NULL
))
{
{
DWORD
err
=
GetLastError
();
DWORD
err
=
GetLastError
();
...
...
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