shithub: rgbds

Download patch

ref: def4f61d5a53bc6d70699bd2e93d3e33a31bf23f
parent: 7d6fac9c009730e73ce5b28e06c1de9adfafe1e4
author: bentley <[email protected]>
date: Sun Jan 17 10:31:13 EST 2010

rgbfix: juvenile mistake. Make last commit work the way it should

--- a/src/lib/main.c
+++ b/src/lib/main.c
@@ -47,7 +47,7 @@
 		lib = lib_Read(libname = argv[argn++]);
 		argc -= 1;
 
-		if (strcmp(argv[argn], "add")) {
+		if (strcmp(argv[argn], "add") == 0) {
 			argn += 1;
 			argc -= 1;
 
@@ -57,7 +57,7 @@
 			}
 			lib_Write(lib, libname);
 			lib_Free(lib);
-		} else if (strcmp(argv[argn], "delete")) {
+		} else if (strcmp(argv[argn], "delete") == 0) {
 			argn += 1;
 			argc -= 1;
 
@@ -68,7 +68,7 @@
 			}
 			lib_Write(lib, libname);
 			lib_Free(lib);
-		} else if (strcmp(argv[argn], "extract")) {
+		} else if (strcmp(argv[argn], "extract") == 0) {
 			argn += 1;
 			argc -= 1;
 
@@ -98,7 +98,7 @@
 				argc -= 1;
 			}
 			lib_Free(lib);
-		} else if (strcmp(argv[argn], "list")) {
+		} else if (strcmp(argv[argn], "list") == 0) {
 			argn += 1;
 			argc -= 1;