mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +00:00 
			
		
		
		
	== 0 not == NULL
This commit is contained in:
		| @@ -1,4 +1,4 @@ | |||||||
| /* $Id: cmd-string.c,v 1.4 2008-07-25 17:20:40 nicm Exp $ */ | /* $Id: cmd-string.c,v 1.5 2008-07-25 17:29:40 nicm Exp $ */ | ||||||
|  |  | ||||||
| /* | /* | ||||||
|  * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> |  * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> | ||||||
| @@ -63,7 +63,7 @@ cmd_string_parse(const char *s, struct cmd **cmd, char **cause) | |||||||
| 	if ((t = strchr(s, ' ')) == NULL && (t = strchr(s, '\t')) == NULL) | 	if ((t = strchr(s, ' ')) == NULL && (t = strchr(s, '\t')) == NULL) | ||||||
| 		t = strchr(s, '\0'); | 		t = strchr(s, '\0'); | ||||||
| 	if ((u = strchr(s, '=')) != NULL && u < t) { | 	if ((u = strchr(s, '=')) != NULL && u < t) { | ||||||
| 		if (putenv(s) != NULL) { | 		if (putenv(s) != 0) { | ||||||
| 			xasprintf(cause, "assignment failed: %s", s); | 			xasprintf(cause, "assignment failed: %s", s); | ||||||
| 			return (-1); | 			return (-1); | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Nicholas Marriott
					Nicholas Marriott