Matt Stancliff aca61af174 Sentinel: Improve INFO command behavior
Improvements:
  - Return empty string if asking for non-existing section (INFO foo)
  - Fix potential memory leak (caused by sdsempty() then returned if >2 args)
  - Clean up argument parsing
  - Allow "all" as valid section (same as "default" or zero args currently)
  - Move strcasecmp to end of evaluation chain in conditionals

Also, since we're C99, I moved some variable declarations to be closer
to where they are actually used (saves us from needing to free an empty info
if detect argument errors up front).

Closes #1915
Closes #1966
2014-12-11 10:49:16 -05:00
..
2012-04-13 17:52:33 -07:00
2014-09-29 06:49:07 -04:00
2014-08-08 10:43:54 +02:00
2014-10-22 15:23:21 +02:00
2014-10-22 15:23:21 +02:00
2014-09-29 06:49:07 -04:00
2013-01-19 10:59:44 +01:00
2014-09-29 06:49:08 -04:00
2014-04-22 16:14:38 +02:00
2014-08-07 16:17:37 +02:00
2014-07-02 17:04:14 +02:00
2014-08-08 14:54:02 +02:00
2014-08-08 10:05:32 +02:00
2014-08-08 14:54:02 +02:00
2014-10-09 11:51:30 -04:00
2014-08-13 10:53:51 +02:00
2013-01-19 10:59:44 +01:00
2014-07-02 16:31:22 +02:00
2014-08-07 12:20:57 +02:00
2014-09-29 06:49:07 -04:00
2013-07-02 12:08:07 +02:00
2011-07-06 15:22:00 +02:00
2014-11-25 21:58:05 +08:00
2013-09-03 15:15:51 +02:00