File: 14-fix-gcc10-ftbfs.patch

package info (click to toggle)
minidlna 1.2.1+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,564 kB
  • sloc: ansic: 19,910; sh: 282; makefile: 61
file content (26 lines) | stat: -rw-r--r-- 633 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/metadata.c
+++ b/metadata.c
@@ -484,12 +484,12 @@
 }
 
 /* For libjpeg error handling */
-jmp_buf setjmp_buffer;
+jmp_buf metadata_setjmp_buffer;
 static void
 libjpeg_error_handler(j_common_ptr cinfo)
 {
 	cinfo->err->output_message (cinfo);
-	longjmp(setjmp_buffer, 1);
+	longjmp(metadata_setjmp_buffer, 1);
 	return;
 }
 
@@ -613,7 +613,7 @@
 			cinfo.err = jpeg_std_error(&jerr);
 			jerr.error_exit = libjpeg_error_handler;
 			jpeg_create_decompress(&cinfo);
-			if( setjmp(setjmp_buffer) )
+			if( setjmp(metadata_setjmp_buffer) )
 				goto error;
 			jpeg_stdio_src(&cinfo, infile);
 			jpeg_read_header(&cinfo, TRUE);