File: mayhem.patch

package info (click to toggle)
maqview 0.2.5-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,404 kB
  • sloc: ansic: 13,310; cpp: 1,295; java: 178; perl: 116; sh: 101; makefile: 23
file content (21 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 17 Dec 2015 11:33:10 +0100
Bug-Debian: https://bugs.debian.org/716116
Description: Fix Mayhem issue
 Do not deal with structure before checking for NULL value

--- a/socket_view.c
+++ b/socket_view.c
@@ -455,11 +455,11 @@ int main(int argc, char **argv){
 		if(argc > optind) cns_file = argv[optind++];
 		else cns_file = NULL;
 		server = createViewServer(map_file, cns_file, port, 6);
-		server->debug = 1;
 		if(server == NULL){
 			printf("Cannot create View\n");
 			return 1;
 		}
+		server->debug = 1;
 		runViewServer(server);
 		exit(0);
 	} else if(c == 'c'){